Is there memory leaks in java?

Answer Posted / aravinda reddy

Yes of course, even though garbage collection low priority
threads running in the back ground in jav, there are still
possibilities are there for memory leaks.

Example : Some objects are no longer useful, but some other
objects refers to these objects, in this case garbage
collection process can not reclaim the memory allocated for
unused objects

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are global variables used?

503


what are different ways in which a thread can enter the waiting state? : Java thread

494


Is this valid in java ? Can we instantiate interface in java?

548


Can you create an object of an abstract class?

555


What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

664






This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

563


What are the important features of Java 11 release?

582


How many characters is 2 bytes?

532


What is meant by structural programming?

555


What does microservices mean?

535


How can we make a class singleton?

578


What is singleton service?

513


What is the meaning of flag day?

543


What is keyword in oop?

524


What is the difference between overriding & overloading?

566