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
What is cr keyboard?
What is meant by object?
What is the use of isempty in java?
Can a final variable be null?
Can we pass null as argument in java?
What happens if we don’t override run method ?
What is the escape character in java?
What is predicate in java?
Does the order of public and static declaration matter in main method?
Is arraylist a class in java?
Explain what is encapsulation?
how do I create a runnable with inheritance? : Java thread
What are different access specifiers in java? Explain
What all methods are used to prevent thread execution ?
Explain try and catch keywords in java?