Question 1: JAVA - For Loop Example
What will be the output?
Question 2: JAVA - Recursion Example
What will this code print?
Question 3: JAVA - StringBuilder vs StringBuffer
Which statement is correct?
Question 4: JAVA - Array Reference
What will this code print?
Question 5: JAVA - Custom Exception
Which is correct about creating a custom exception?
Question 6: JAVA - HashMap Example
What will this code print?
Question 7: JAVA - Lower Bounded Wildcard
Which syntax is used for a generic type that can accept Integer or its supertypes?
Question 8: JAVA - Method Reference
Which is a valid method reference in Java?
Question 9: JAVA - Stream Count
What will this code print?
Question 10: JAVA - Executor Framework
Which class provides factory methods for creating thread pools?
Question 11: JAVA - Do While Loop
What will be the output?
Question 12: JAVA - Varargs Method
What will the following code print?
Question 13: JAVA - String Reverse Example
What will this code print?
Question 14: JAVA - Array Sorting
Which class provides a built-in method to sort arrays in Java?
Question 15: JAVA - Try with Multiple Resources
Which Java version introduced try-with-resources for automatic resource management?
Question 16: JAVA - Iterator
Which method of `Iterator` is used to remove an element during iteration?
Question 17: JAVA - Generic Example Code
What will this code print?
Question 18: JAVA - Scope in Lambda
Which statement about lambda expressions is true?
Question 19: JAVA - Parallel Stream
Which method is used to create a parallel stream from a list?
Question 20: JAVA - Callable vs Runnable
Which is true about Callable vs Runnable?