1. What is Java?
2. What are the key features of Java?
3. What is the Java Virtual Machine (JVM)?
4. What is bytecode in Java?
5. What is the role of the Java Development Kit (JDK)?
6. What is the difference between JDK, JRE, and JVM?
7. What is the purpose of the main() method in Java?
8. Why is Java considered platform-independent?
9. What is a class in Java?
10. What is an object in Java?
11. What is the difference between an object and a class in Java?
12. What is inheritance in Java?
13. What are packages in Java?
14. What is encapsulation in Java?
15. What is polymorphism in Java?
16. What are constructors in Java?
17. What is the use of this keyword in Java?
18. What is the difference between this and super in Java?
19. What is an interface in Java?
20. What is an abstract class in Java?
21. What is the difference between abstract class and interface in Java?
22. What is the final keyword in Java?
23. What is method overloading in Java?
24. What is method overriding in Java?
25. What is the difference between method overloading and method overriding?
26. What is static in Java?
27. What is the difference between static and instance variables?
28. What is the purpose of the super keyword in Java?
29. What is the difference between == and .equals() in Java?
30. What is the use of finalize() method in Java?
31. What is a String in Java?
32. What is the difference between String, StringBuffer, and StringBuilder?
33. What are access modifiers in Java?
34. What is a constructor in Java?
35. What is the difference between default constructor and parameterized constructor?
36. What is an exception in Java?
37. What is exception handling in Java?
38. What is the difference between throw and throws in Java?
39. What are checked and unchecked exceptions in Java?
40. What is the purpose of try, catch, and finally in Java?