Posts

Core Java Interview Question

  ===================  CORE JAVA INTERVIEW QUESTION ======================= 1. What are the main principles of Object-Oriented Programming (OOP)? 2. Differentiate between JDK, JRE, and JVM. 3. Explain the concept of platform independence in Java. 4. What is the significance of the main method in Java? 5. How does Java achieve memory management? 6. What are constructors in Java? How are they different from methods? 7. Explain method overloading and method overriding with examples ? 8. What is inheritance in Java? Discuss its types 9. Define polymorphism and its types in Java. 10. What is an interface in Java, and how does it differ from an abstract class? 11. Describe the access modifiers in Java. 12. What is encapsulation? How is it implemented in Java? 13. What are static variables and methods? Provide examples. 14. Discuss the lifecycle of a thread in Java. 15. What is exception handling? How is it implemented in Java? 16. Differentiate between throw and throws keywords. 17....