What is garbage collection in Java, and how can it be used ?
Answer Posted / dsr
when ever object scope is over at that the object memory
removed.This is nown as garbageCollection.
| Is This Answer Correct ? | 19 Yes | 11 No |
Post New Answer View All Answers
Can we use string in switch case in java?
Is ruby built on java?
Can java list be null?
What is lazy initialization in java?
How to remove the trailing spaces from a string?
What are anonymous inner classes?
Is char * a string?
Explain about main thread in java?
Explain serialization and deserialization in java?
What is gc()?
How to display all the prime numbers between 1 and 100
Explain about fail fast iterators in java?
What is the Scope of Static Variable?
What is object data type?
Is ++ operator is thread safe in java?