Sail E0 Webinar
Question

Why is it expensive to use objects for exception?


Options:
A .  Exception object is created only if an error actually happens
B .  Because of execution time
C .  Memory space involved in creating an exception object
D .  None of the mentioned
Answer: Option A

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.




Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers