├── LICENSE └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Brian Marete 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Java Technical Interview Questions 2 | ## Java 3 | * What is the JVM? 4 | * Define code compilation? 5 | * What is a constuctor? 6 | * What is the naming convention of variables in java? 7 | * What is an annotation and give an example. 8 | * What is the difference betwee '==' and equals() when comparing Strings? 9 | * What are the 8 primitive types in Java? 10 | * What is the difference between primitives and wrapper classes and when can we use each? 11 | * Define Encapsulation and outline its benefits. 12 | * What is the naming convention for JUnit test methods? 13 | * When we compile our code, where do the compiled .class files live? 14 | * Why is Behavior-Driven Development beneficial? 15 | * What is the difference between an Array and an ArrayList? When do you use one over the other? 16 | * What is a stacktrace? What does it do for us? 17 | * Why is it best practice to declare attributes of a custom class private? 18 | * When would we use char? What is its corresponding wrapper class? 19 | * Do objects get passed by reference or value in Java? Elaborate on that. 20 | * Explain the four OOP principles. 21 | * What is the difference between Abstract classes and Interfaces? 22 | * Is it possible to implement multiple inheritance in Java? 23 | * What is serialization? How do you implement it? 24 | * What are anonymous classes? 25 | * What does it means to say that a String is immutable? 26 | * What is the difference between method overloading and method overriding? 27 | * What are the access modifiers you know? What does each one do? 28 | * Do objects get passed by reference or value in Java? Elaborate on that. 29 | * What the difference between local, instance and class variables? 30 | * What is Dependency Injection? 31 | * What does the static word mean in Java? Can a static method be overridden in Java? 32 | * When is a static block run? 33 | * What is reflection? 34 | * How does the try{} catch{} finally{} 35 | * What is garbage collection? How does it work? 36 | * What is memory leak and how does Java handle it? 37 | * What does the keyword synchronized mean? 38 | * Explain Generics in Java 39 | 40 | 41 | ## Web Development 42 | * What is the difference between a GET and POST request? 43 | * What is a URI? 44 | * Differenciate between a client and host. 45 | * What is the difference between HTTP and HTTPS? 46 | * Point out these components(query, host, port, protocol, path ) in the following URL https://127.0.0.1:4200/login/a=bx?c 47 | * What is an Internet Protocol? 48 | ## Android 49 | * What are the four main components of an Android Application? 50 | * What is the purpose of a package name? 51 | * What is the purpose of Android Virtual Device? 52 | --------------------------------------------------------------------------------