Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions
Technical Discussion :: C++

113 / 184

What is meant by exception handling mechanism?


Exception handling mechanism is basically built upon through keywords namely try, catch, and throw. The keyword try is used to preface a block of statements which may generate an exception. This block of statements is known as try block. When an exception is detected, it is thrown using a throw statement in the try block. A catch statement is defined by the keyword catch “catches” the exception thrown by the throw statement in the try block.

Asked In :: TCS

Post Your Answer Here:

Rate This: +0 -0     

Post Your Reply Here:

Alert me

Report Error

Please Login First Click Here

Most Popular Qs.