1.

Choose the statement which is incorrect?(a) try block does not need to be followed by catch block(b) try block can be followed by finally block instead of catch block(c) try can be followed by both catch and finally block(d) try need not to be followed by anythingI have been asked this question by my school teacher while I was bunking the class.Question is taken from Try & Catch in Detail in section Indexers and Exception Handling of C#

Answer»

Right answer is (d) TRY NEED not to be followed by anything

Explanation: try followed by EITHER CATCH or finally block.



Discussion

No Comment Found

Related InterviewSolutions