1.

Which keyword is used to throw an exception?(a) try(b) throw(c) throws(d) exceptI had been asked this question at a job interview.My query is from Exception Handling topic in chapter Derived Classes, Templates & Exception Handling in C++ of C++

Answer» CORRECT OPTION is (B) throw

The best I can explain: ‘throw’ keyword is USED to throw exceptions if SOMETHING bad happens.


Discussion

No Comment Found

Related InterviewSolutions