1.
Core Java Basics
1. What is Java?
2. What are the main features of Java?
3. What is the difference between JDK, JRE, and JVM?
4. What is bytecode in Java?
5. Why is Java platform-independent?
6. What is the difference between compiler and interpreter?
7. What is the difference between Java and C++?
8. What is the role of the main() method?
9. What is the difference between [Link]() and [Link]()?
10. What is the difference between variables and constants?
🧩 2. Data Types, Variables & Operators
1. What are the different data types in Java?
2. What is type casting?
3. What are the different types of variables in Java?
4. What is the difference between local and instance variables?
5. What are operators in Java?
6. What is the difference between == and .equals()?
7. What is the ternary operator?
8. What is increment (++) and decrement (--) operator?
9. What is operator precedence?
10. What is a literal in Java?
🔁 3. Control Statements
1. What are control statements in Java?
2. What is the difference between if and switch statements?
3. How does a for loop work?
4. What is the difference between while and do-while loop?
5. What is the purpose of break and continue?
6. Can a switch statement work with strings in Java?
7. Can you use nested loops?
8. What is an infinite loop?
9. What happens if the condition in a loop is always true?
10. What is the difference between iteration and recursion?
🧱 4. OOPs Concepts (Most Important)
1. What is Object-Oriented Programming (OOP)?
2. What are the four main pillars of OOP?
3. What is a class?
4. What is an object?
5. What is the difference between class and object?
6. What is inheritance?
7. What is polymorphism?
8. What is method overloading?
9. What is method overriding?
10. What is encapsulation?
11. What is abstraction?
12. What is the difference between abstraction and encapsulation?
13. What is the difference between this and super keywords?
14. Can we override static methods?
15. Can we overload the main method?
16. What is constructor?
17. What is constructor overloading?
18. What is the difference between constructor and method?
19. Can a constructor be private?
20. What is the use of the final keyword?
🧩 5. Strings & Arrays
1. What is a String in Java?
2. Difference between String, StringBuilder, and StringBuffer.
3. Are Strings mutable or immutable in Java?
4. How do you compare two strings?
5. What are array and its types?
6. How do you declare and initialize an array?
7. What is the difference between single-dimensional and multi-dimensional arrays?
8. What is the default value of array elements?
9. How do you find the length of an array?
10. How can you copy one array into another?
🧮 6. Exception Handling
1. What is an exception in Java?
2. What is the difference between checked and unchecked exceptions?
3. What is the purpose of try-catch block?
4. What is the use of finally block?
5. Can we have multiple catch blocks?
6. What is throw and throws?
7. What is the difference between throw and throws?
8. What happens if an exception is not handled?
9. What is a custom exception?
10. Can a finally block execute without a catch block?
💾 7. Collections Framework
1. What is the Java Collections Framework?
2. What is the difference between List, Set, and Map?
3. What is the difference between ArrayList and LinkedList?
4. What is the difference between HashSet and TreeSet?
5. What is a HashMap?
6. How does HashMap work internally?
7. What is the difference between HashMap and Hashtable?
8. What is a Queue in Java?
9. What is the difference between Iterator and ListIterator?
10. What is the difference between fail-fast and fail-safe iterators?
⚙️8. Multithreading
1. What is multithreading in Java?
2. What is the difference between process and thread?
3. What are the advantages of multithreading?
4. How do you create a thread in Java?
5. What is the difference between start() and run() methods?
6. What is synchronization?
7. What is a deadlock?
8. What is thread priority?
9. What is the purpose of sleep() and join() methods?
10. Can we start a thread twice?
🌐 9. Java Input/Output (I/O)
1. What is the use of the Scanner class?
2. What is the difference between byte stream and character stream?
3. What are the different ways to read input from a user?
4. What is serialization?
5. What is the purpose of FileReader and FileWriter?
6. What is the use of BufferedReader?
7. How do you handle file not found exceptions?
⚡ 10. Advanced Java (Basic Level)
1. What is JDBC?
2. What are the steps to connect Java with a database?
3. What is a DriverManager?
4. What are the main interfaces in JDBC?
5. What is the difference between Statement and PreparedStatement?
6. What is Spring Boot?
7. What is REST API?
8. What are HTTP methods used in REST (GET, POST, PUT, DELETE)?
9. What is JSON and why is it used?
10. What is dependency injection in Spring Boot?
📘 11. Miscellaneous / Interview Favorites
1. Difference between static and non-static members.
2. Can we execute a program without main() method?
3. What is garbage collection?
4. What are access modifiers in Java?
5. What is the difference between public, private, protected, and default?
6. What is the use of packages?
7. What is the difference between abstract class and interface?
8. Can an interface have constructors?
9. What is method hiding?
10. Why is Java not 100% object-oriented?