What happens to the Exception object after handling an
exception?



What happens to the Exception object after handling an exception?..

Answer / Ritu Wala

After handling an exception, the exception object is not automatically destroyed. Instead, it remains in memory until the JVM is shut down or the garbage collector reclaims the memory. However, if the exception object is no longer being referenced by any other part of the program, it may be eligible for garbage collection.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is d difference between deep cloning and shallow cloning in core java?

3 Answers   Satyam,


What is the name of the java compiler?

1 Answers  


What is number data type?

1 Answers  


How variables are declared?

1 Answers  


Why for each loop is used?

1 Answers  


Can a private method of a superclass be declared within a subclass?

1 Answers  


Which is better stringbuffer or stringbuilder?

1 Answers  


What is thread safe in java?

1 Answers  


Explain about anonymous inner classes ?

1 Answers  


What is the life-cycle of an object?

2 Answers   Broadridge, Syntel,


Why we used break and continue statement in java?

1 Answers  


Difference between predicate, supplier and consumer ?

1 Answers  


Categories