Home » Interview » Technology

Why is it expensive to use objects for exception?

Correct Answer: Exception object is created only if an error actually happens

Explanation:

If an error occurs in program, then only exception object is created otherwise, It will not be created. So it’s expensive to use in the program.


← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion