Question 1
Which collection type in Java does not allow duplicate elements?
Question 2
What is the purpose of the 'try-with-resources' statement in Java?
Question 3
What is the difference between an interface and an abstract class in Java, regarding multiple inheritance?
Question 4
What exception is thrown when dividing an integer by zero in Java?
Question 5
What does the 'static' keyword mean when applied to a method in Java?
Question 6
Which keyword is used to inherit a class in Java?
Question 7
What is the JVM responsible for?
Question 8
What is the purpose of the 'final' keyword when applied to a variable in Java?
Question 9
What does the Java Collections Framework's HashMap use internally to store key-value pairs?
Question 10
Which Java feature, introduced in Java 8, allows passing behavior as a method argument concisely?