What is garbage collection in Java, and how can it be used ?
Answer Posted / janet
When an object is no longer referred to by any
variable,java automatically reclaims memory used by that
object.This is known as garbage collection.
System.gc() method may be used to call it explicitly.
Is This Answer Correct ? | 180 Yes | 34 No |
Post New Answer View All Answers
what do you understand by synchronization? : Java thread
What are scalar data types?
What is linked hashset and its features?
write a program that list all permutations of ABCDEF in which A appears before B?
How do you square a number?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
What is the basic of java?
What is qualitative variable?
How to pass arraylist to stored procedure in java?
What is the relationship difference the canvas class and the graphics class?
What does the append?
What is ternary operator in java?
What is a final class in java?
What Is Query Throttling in java?
What is try-with-resources in java?