Java Questions
Java Basics 1. What is the difference between JDK and JRE? 2. What is Java Virtual Machine (JVM)? 3. What are the different types of memory areas allocated by JVM? 4. What is JIT compiler? 5. How Java platform is different from other platforms? 6. Why people say that Java is 'write once and run anywhere' language? 7. How does ClassLoader work in Java? 8. Do you think ‘main’ used for main method is a keyword in Java? 9. Can we write main method as public void static instead of public static void? 10. In Java, if we do not specify any value for local variables, then what will be the default value of the local variables? 11. Let say, we run a java class without passing any arguments. What will be the value of String array of arguments in Main method? 12. What is the difference between byte and char data types in Java? OOPS 13. What are the main principles of Object Oriented Programming? 14. What is the difference between Object Oriented Programming language and Object Based Progr...