What Is Resource Leak?

Answer Posted / madhu

Garbage Collection (GC) in Java will relieve you from the
mundane duties of allocating, tracking, and freeing the
heap memory. Indeed, the promise has been delivered, so it
is reasonable -- and to quite an extent correct -- for you
to conclude that there will be no memory leaks in your Java
program. However, the catch is that GC can take care of
only typical heap management problems.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I learn java without any programming experience?

549


Difference between arraylist and hashset in java?

537


Can a class have more than one object?

524


List the different types of classloaders in java.

501


Can you make a constructor final in Java?

624






What is a method declaration?

509


Do I need java for windows 10?

546


How can constructor chaining be done using this keyword?

586


What are mutable classes?

521


What is meant by local variable and instance variable?

593


What will happen to the exception object after exception handling?

568


What is the nested interface?

593


Explain throw keyword in java?

609


Tell us something about different types of casting?

519


What is default switch case? Give example.

574