Java MCQ Quiz Hub

Java Mcq Question Set 4

Choose a topic to test your knowledge and improve your Java skills

Which of these keywords must be used to handle the exception thrown by try block in some rational manner?





✅ Correct Answer: 1

Which of these keywords is used to manually throw an exception?





✅ Correct Answer: 3

Which of these is a super class of all exceptional type classes?





✅ Correct Answer: 4

Which of these class is related to all the exceptions that can be caught by using catch?





✅ Correct Answer: 1

Which of these class is related to all the exceptions that cannot be caught?





✅ Correct Answer: 3

Which of these handles the exception when no catch is used?





✅ Correct Answer: 1

Which of these keywords is used to generate an exception explicitly?





✅ Correct Answer: 3

Which of these class is related to all the exceptions that are explicitly thrown?





✅ Correct Answer: 4

Which of these operator is used to generate an instance of an exception than can be thrown by using throw?





✅ Correct Answer: 2

Which of these keywords is used to by the calling function to guard against the exception that is thrown by called function?





✅ Correct Answer: 4

Which of these keywords is used to define interfaces in Java?





✅ Correct Answer: 1

Which of these can be used to fully abstract a class from its implementation?





✅ Correct Answer: 3

Which of these access specifiers can be used for an interface?





✅ Correct Answer: 2

Which of these keywords is used by a class to use an interface defined previously?





✅ Correct Answer: 2

Which of the following is correct way of implementing an interface salary by class manager?





✅ Correct Answer: 3

Which of the following is incorrect statement about packages?





✅ Correct Answer: 4

Which of the following package stores all the standard java classes?





✅ Correct Answer: 1

Which of these classes is not included in java.lang?





✅ Correct Answer: 2

Which of these is a process of converting a simple data type into a class?





✅ Correct Answer: 3

Which of these is a super class of wrappers Double & Integer?





✅ Correct Answer: 1