1.

Pick out the correct answer.(a) Exceptions are not suitable for critical points in code(b) Exception are suitable for critical points in code(c) Exceptions are used when postconditions of a function cannot be satisfied(d) Throw block should be placed after try block

Answer» Correct answer is (a) Exceptions are not suitable for critical points in code

The explanation is: If there is many number of exceptions in the program means, We have to use multiple catch statement and it is hard to keep track of the program.


Discussion

No Comment Found

Related InterviewSolutions