Skip to content

Beginner level java quiz

Which of the following is used to handle exceptions in Java?

Which of these is a valid constructor in Java?

Which method is used to find the length of a string in Java?

What is the size of an `int` in Java?

Which of the following is not a valid loop type in Java?

Which of the following is used to declare an array in Java?

Which of the following is the correct way to declare a variable in Java?

What does the `continue` statement do in a loop?

Which of the following is used to convert a string to an integer in Java?

What will be the output of the following code? System.out.println(10 / 4);


J2J Institute private limited