in Education by
Which of the following handles the exception when a catch is not used? (a) finally (b) throw handler (c) default handler (d) java run time system I got this question by my school principal while I was bunking the class. Question is taken from Exception Handling in portion Exception Handling of Java Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Right option is (c) default handler Easiest explanation: Default handler is used to handle all the exceptions if catch is not used to handle exception. Finally is called in any case.

Related questions

0 votes
    Which of these handles the exception when no catch is used? (a) Default handler (b) finally (c) throw ... Exception Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of the following classes can catch all exceptions which cannot be caught? (a) RuntimeException (b) Error (c ... Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of the following keywords is used for throwing exception manually? (a) finally (b) try (c) throw ( ... Exception Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of the following operators is used to generate instance of an exception which can be thrown using throw? (a ... Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of the following keyword is used by calling function to handle exception thrown by called function? (a) ... Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these class is related to all the exceptions that can be caught by using catch? (a) Error (b) ... Exception Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these exceptions handles the divide by zero error? (a) ArithmeticException (b) MathException (c) ... Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    What is the use of try & catch? (a) It allows us to manually handle the exception (b) It allows ... section Exception Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these keywords is not a part of exception handling? (a) try (b) finally (c) thrown (d) ... Exception Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which part of code gets executed whether exception is caught or not? (a) finally (b) try (c) catch (d ... Exception Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these keywords must be used to handle the exception thrown by try block in some rational manner? (a ... Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these keywords is used to generate an exception explicitly? (a) try (b) finally (c) throw (d) ... Exception Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these operator is used to generate an instance of an exception than can be thrown by using throw? ... Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these keywords are used for generating an exception manually? (a) try (b) catch (c) throw (d) ... Exception Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of the following is a super class of all exception type classes? (a) Catchable (b) RuntimeExceptions (c ... Handling of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
...