Q:
Why is it expensive to use objects for exception?
Answer & Explanation
Answer: A) 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.
View Answer
Report Error
Discuss