Answer Posted / pradeep panwar
Hi All....
yea thats true that we can't force for Garbage Collection.
We can send a request by system.gc(); at any time but its
not sure that garbage collection takes place at that time.
It depends on memory. So we cant forcr fot GC either
sending the explicit request.
can catch me on +91-9899954354
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
Why do we use threads in java?
What is high level language in computer?
What is void class in java?
What is the difference between a method and a function in alice?
How can you traverse a linked list in java?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
What is structure of java heap? What is perm gen space in heap?
What is a generic code?
Why call by value prevents parameter value change?
Is string a class in java?
How objects of a class are created if no constructor is defined in the class?
What are the problems faced by java programmers who don't use layout managers?
What is the latest version of java?
Define an abstract class with reference to java.
Name the components that are termed to be Heavy-weight component but available in Light-weight components?