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 ? | 182 Yes | 34 No |
Post New Answer View All Answers
What was java originally called?
What are the methods used to implement for the key object in the hash map?
What do you mean by boolean?
how to write a program for sending mails between client and server
What is the protected method modifier?
How big is a pointer?
Does string isempty check for null?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
Explain the difference between jvm and jre?
Explain the significance of listiterator.
how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application
Does string is thread-safe in java?
Why is stringbuffer faster than string?
Explain some best practices you would apply while using collection in java?
What is queue in java?