JAVA common interview questions
- What is Java?
- What are the differences between Java and C++?
- What are the basic data types in Java?
- What is a class in Java?
- What is an object in Java?
- What is an interface in Java?
- What is an abstract class in Java?
- What is inheritance in Java and how is it implemented?
- What is polymorphism in Java and how is it implemented?
- What is encapsulation in Java and how is it achieved?
- What is the difference between the static and non-static methods in Java?
- What is a constructor in Java and how is it used?
- What is an exception in Java and how is it handled?
- What is a thread in Java and how is it used?
- What is the difference between final, finally, and finalize in Java?
- What is a package in Java and how is it used?
- What is the difference between JDK and JRE in Java?
- What is the difference between an ArrayList and a LinkedList in Java?
- What is a map in Java and how is it used?
- What is the difference between a hashmap and a hashtable in Java?
- What is the difference between a stack and a queue in Java?
- What is the difference between the throw and throws keywords in Java?
- What is the difference between an abstract class and an interface in Java?
- What is the difference between a checked exception and an unchecked exception in Java?
- What is the purpose of the "final" keyword in Java?
- What is the purpose of the "static" keyword in Java?
- What is the purpose of the "synchronized" keyword in Java?
- What is the purpose of the "volatile" keyword in Java?
- What is a singleton class in Java?
- What is the difference between a shallow copy and a deep copy in Java?
- What is a marker interface in Java?
- What is a lambda expression in Java?
- What is a functional interface in Java?
- What is a stream in Java and how is it used?
- What is the difference between an iterator and a list iterator in Java?
- What is a heap and how is it used in Java?
- What is a garbage collector in Java and how does it work?
- What is the difference between a process and a thread in Java?
- What is the difference between an applet and an application in Java?
- What is the difference between the Comparable and Comparator interfaces in Java?
- What is the difference between the equals() and == operators in Java?
- What is the purpose of the super keyword in Java?
- What is the purpose of the this keyword in Java?
- What is the difference between the private, protected, and public access modifiers in Java?
- What is a JAR file in Java and how is it used?
- What is the purpose of the Class.forName() method in Java?
- What is the difference between the String, StringBuilder, and StringBuffer classes in Java?
- What is the purpose of the assert keyword in Java?
- What is the difference between the try-with-resources and the try-catch-finally statements in Java?
- What is a diamond operator in Java and how is it used?
Comments
Post a Comment