1. What is the difference between JDK, JRE, and JVM?
2. Explain the features of Java that make it a platform-independent language.
3. What are the different data types in Java?
4. What is the difference between '==' and '.equals()' in Java?
5. What are Java access modifiers? List and explain them.
6. What is type casting in Java? Explain with an example.
7. Explain the difference between 'while' and 'do-while' loops in Java.
8. What is the purpose of the 'final' keyword in Java?
9. What are arrays in Java? How are they declared and initialized?
10. What is a constructor? How is it different from a method?
11. What are the four principles of Object-Oriented Programming?
12. Explain the concept of inheritance with an example.
13. What is method overloading and method overriding in Java?
14. What is the difference between 'super' and 'this' keyword in Java?
15. What is abstraction? How is it achieved in Java?
16. What is the difference between an abstract class and an interface?
17. What is encapsulation? Why is it important in OOP?
18. What is polymorphism? Explain with an example.
19. Can you instantiate an interface in Java? Why or why not?
20. What is the difference between static and non-static methods?
21. What is file handling in Java and why is it important?
22. How do you read from a file using Java?
23. How do you write data to a file in Java?
24. What is the difference between 'FileReader' and 'BufferedReader'?
25. What exceptions are commonly used in file handling? How do you handle them?