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 |
what is d difference between deep cloning and shallow cloning in core java?
What is the name of the java compiler?
What is number data type?
How variables are declared?
Why for each loop is used?
Can a private method of a superclass be declared within a subclass?
Which is better stringbuffer or stringbuilder?
What is thread safe in java?
Explain about anonymous inner classes ?
What is the life-cycle of an object?
Why we used break and continue statement in java?
Difference between predicate, supplier and consumer ?