What is the purpose of the `volatile` keyword in Java?
Which of the following statements is true about `hashCode()` and `equals()` methods in Java?
Which method must be implemented in a Java class for it to be considered a valid comparator for sorting?
Which of the following statements is true about `Java's` reflection API?
What will be the output of the following code?
public class Test {
public static void main(String[] args) {
Integer i1 = 1000;
Integer i2 = 1000;
System.out.println(i1 == i2);
}
}
In a `ConcurrentHashMap`, what happens when multiple threads attempt to update the same key simultaneously?
What is the result of invoking `System.gc()` in Java?
What is the purpose of the `fork()` method in Java's `ForkJoinPool`?
What is the primary difference between `ArrayList` and `LinkedList` in Java?
What will happen if a `finally` block contains a `return` statement in Java?