What is garbage collection in Java, and how can it be used ?
Answer Posted / ashish
Garbage collection is the Process of automatically freeing
objects that are no longer referenced by the Program.
But a Potential disadvantages of a garbage-collected heap is
that it adds an overhead that can affect program performance....
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
Differentiate between run time error and syntax error.
Can we declare array without size in java?
What are the advantages of encapsulation in java?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
Is there a case when finally will not execute?
What is passing value java?
Give a practical example of singleton class usage?
What is arguments in java?
What are the advantages of packages in java?
How can we break singleton in java?
Can we write a class without main method in java?
What is meant by distributed application? Why are we using that in our application?
How to do encapsulation in java?
Explain parallel processing in java8?