What is Java?
Java is a high-level programming language developed by Sun Microsystems.
What is the difference between an interface and an abstract class?
An interface is a contract for a class to implement, while an abstract class is a partially implemented class that cannot be instantiated.
What is the difference between a HashMap and a TreeMap?
A HashMap is an unordered collection of key-value pairs, while a TreeMap is a sorted collection of key-value pairs.
What is the difference between a checked and an unchecked exception?
A checked exception is a type of exception that must be caught or declared in the method signature, while an unchecked exception is not required to be caught or declared.
What is the difference between the equals() method and the == operator?
The equals() method compares the contents of two objects, while the == operator compares the memory addresses of two objects.