What is garbage collection in Java, and how can it be used ?
Answer Posted / sachin deshmukh
In java doesn't allow memory leakage,Garbage collector
automatically deallocates memory.It deallocates memory of
objects that no longer has any references i.e. references
count is zero.
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
How to Sort Strings which are given in List and display in ascending order without using java api.
Difference between method overloading and overriding.
Explain the difference between protected and default access.
What are runtime exceptions?
Which graphs are functions?
Can we have this () and super () together?
What is import java util arraylist?
Why should we use singleton pattern instead of static class?
How do you sort a string in java?
How many types of operators are there?
What do you mean by inner class in java? Explain
Can we extend singleton class?
What are 3 data types?
What is a default constructor and also define copy contrucyor?
What is the purpose of stub and skeleton?