1.

Which keyword is used to handle the expection?(a) try(b) throw(c) catch(d) handlerThe question was asked during an online interview.Enquiry is from Error Handling in chapter Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

Correct ANSWER is (C) catch

Best EXPLANATION: When we found a exception in the program, We NEED to throw that and we handle that by USING the catch keyword.



Discussion

No Comment Found

Related InterviewSolutions