How is Garbage collection done in Java?
Answer Posted / boomiraj
Programmer can not cause the garbage collector.
We can call the garbage collection using System.gc();
And we can set the variable value equal to null, it assign that variable garbage rest the that use.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Can we synchronize static methods in java?
How to create a base64 decoder in java8?
What all access modifiers are allowed for top class ?
How are observer and observable used in java programming?
What is a treeset in java?
What do you understand by final value?
What restrictions are placed on method overriding?
What is a numeric string?
Can you make a constructor final in Java?
What is arguments in java?
Explain importance of inheritance in java?
write a program that list all permutations of ABCDEF in which A appears before B?
What is the use of protected in java?
Which is the class in java?
Explain the advantages of packages in java?