1.

Which is used to throw a exception?(a) throw(b) try(c) catch(d) handlerThe question was asked during an interview.I'm obligated to ask this question of Error Handling topic in portion Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

The correct ANSWER is (a) THROW

The EXPLANATION: throw keyword is USED to throw an exception.

eg:



Discussion

No Comment Found

Related InterviewSolutions