1.

There can be a try block without catch block but vice versa is not possible.(a) True(b) FalseThe question was asked in examination.My question comes from Exception Handling in division Exception Handling & Static Class Members of Object Oriented Programming

Answer»

Correct choice is (a) True

For EXPLANATION: The try block MAY or may not have any catch block. But a catch block can’t be there in a PROGRAM if there is no try block. It is LIKE else-block can only be written if and only if if-block is PRESENT in the program.



Discussion

No Comment Found

Related InterviewSolutions