Java Quizz - UNIQUE SYSTEM SKILLS INDIA

Follow Us:

Java Quizz

Home Java Quizz

Java Quizz

Test your Java knowledge! 🚀 Take our tech quiz to sharpen your skills, challenge your understanding, and compete with others. Start quizzing today!

1 / 14

1. What is the default priority of a thread in Java?

2 / 14

2. Which of the following methods can be used to make a thread pause execution for a specific amount of time?

3 / 14

3. What is the main purpose of the Stream.sorted method?

4 / 14

4. Which of the following is a valid lambda expression?

5 / 14

5. Which of the following is a checked exception?

6 / 14

6. In which of the following type of ResultSet, the cursor can only move forward in the result set?

7 / 14

7. What is the output of the following code?
try {
int a = 10 / 0;
} catch (ArithmeticException e) {
System.out.println("Exception caught");
} finally {
System.out.println("Finally block");
}

8 / 14

8. What will be the output of the below statements?
public class Test {

public static void main(String[] args) {
String s1 = "abc";
StringBuffer s2 = new StringBuffer(s1);
System.out.println(s1.equals(s2));
}
}

9 / 14

9. Which method is used to transform each element of a Stream using a provided function?

10 / 14

10. Which of the following is correct about setFetchSize(int)?

11 / 14

11. Select all the classes that extend the String class

12 / 14

12. What is the result of applying the Stream.reduce operation?

13 / 14

13. Which method is used to start a thread in Java?

14 / 14

14. Which of the following is correct about PreparedStatement?

Your score is

0%