Question 1: JAVA - Break Statement
What will be the output?
Question 2: JAVA - Main Method Signature
Which is the correct main method declaration in Java?
Question 3: JAVA - String Interning
What does the intern() method of String do?
Question 4: JAVA - Array Copy
Which method is used for copying array elements efficiently?
Question 5: JAVA - Exception Hierarchy
Which is the top-most superclass of all exceptions in Java?
Question 6: JAVA - Fail-Fast Iterator
Which collections use fail-fast iterators?
Question 7: JAVA - Type Erasure
How does Java implement generics internally?
Question 8: JAVA - Stream with Lambda
What will this code print?
Question 9: JAVA - Distinct & Sorted
What will this code print?
Question 10: JAVA - Volatile Keyword
What does the volatile keyword ensure in Java?
Question 11: JAVA - Continue Statement
What will be printed?
Question 12: JAVA - Pass by Value
What will be the output?
Question 13: JAVA - String isEmpty() vs isBlank()
Which is true about isEmpty() vs isBlank()?
Question 14: JAVA - Array to String
What will this code print?
Question 15: JAVA - Catch Without Exception
What will happen?
Question 16: JAVA - Queue Interface
Which method of `Queue` retrieves and removes the head of the queue, or returns `null` if empty?
Question 17: JAVA - Multiple Type Parameters
Which of the following correctly declares a generic class with two type parameters?
Question 18: JAVA - Comparator with Lambda
Which lambda correctly sorts a list of strings by length?
Question 19: JAVA - AnyMatch Example
What will this code return?
Question 20: JAVA - ReentrantLock Example
Which advantage does ReentrantLock have over synchronized?