adplus-dvertising
frame-decoration

Question

If classes produce some exceptions, then ______________________

a.

Their respective catch block must be defined

b.

Their respective catch blocks are not mandatory

c.

Their catch blocks should be defined inside main function

d.

Their catch blocks must be defined at the end of program

Answer: (a).Their respective catch block must be defined

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If classes produce some exceptions, then ______________________

Similar Questions

Discover Related MCQs

Q. Which among the following handles the undefined class in program?

Q. If a catch block accepts more than one exceptions then __________________

Q. To catch more than one exception in one catch block, how are the exceptions separated in the syntax?

Q. Since which version of java is multiple exception catch was made possible?

Q. How many catch blocks can a class have?

Q. If catching of base class exception is done before derived class in C++ ________________

Q. The catching of base class exception ___________________________ in java.

Q. If both base and derived class caught exceptions ______________

Q. Which among the following is true for class exceptions?

Q. Why do we use finally block?

Q. Which class is used to handle the input and output exceptions?

Q. Which symbol should be used to separate the type of exception handler classes in a single catch block?

Q. Multiple catch blocks __________________

Q. To catch the exceptions ___________________

Q. Which among the following is not a method of Throwable class?

Q. How many catch blocks can a single try block can have?

Q. There can be a try block without catch block but vice versa is not possible.

Q. Which are the two blocks that are used to check error and handle the error?

Q. What are two exception classes in hierarchy of java exceptions class?

Q. Which is the universal exception handler class?