Question 1: JAVA - Switch Statement
What will this code print?
Question 2: JAVA - Method Overriding
Which of the following is true about method overriding?
Question 3: JAVA - String Length
What will be printed?
Question 4: JAVA - Enhanced For Loop
What will be the output?
Question 5: JAVA - Throw vs Throws
Which statement is correct?
Question 6: JAVA - ArrayList Example
What will this code print?
Question 7: JAVA - Wildcard ?
What does the wildcard ? represent in generics?
Question 8: JAVA - Lambda with Thread
What will happen?
Question 9: JAVA - Reduce Operation
What will this code print?
Question 10: JAVA - Synchronization
Why is synchronization used in multithreading?
Question 11: JAVA - While Loop
How many times will this loop run?
Question 12: JAVA - Static Method
Which statement is correct about static methods?
Question 13: JAVA - Substring Method
What will this code print?
Question 14: JAVA - Multi-Dimensional Array
What will this code print?
Question 15: JAVA - Exception Propagation
What will be the output?
Question 16: JAVA - HashSet Example
What will this code print?
Question 17: JAVA - Upper Bounded Wildcard
Which declaration is correct for a list of numbers (Integer, Double, etc.)?
Question 18: JAVA - ForEach with Lambda
What will this code print?
Question 19: JAVA - Collectors
Which method collects stream results into a list?
Question 20: JAVA - Deadlock Example
What is a deadlock?