Answer Posted / vijayakumar chinnasamy
Variable/object
1. is eligible for garbage collection when no object refers
to it.
2. Is eligible when its reference is set to null i.e
objName=null.
3. referred by method variables or local variables are
eligible for garbage collection when they go out of scope.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we override tostring method in java?
Is java owned by oracle?
What is a private class in java?
What is the difference between a vector & an array list?
Write a java program to count the number of words present in a string?
what is static import in java? Explain
Is it possible to specify multiple jndi names when deploying an ejb?
Why singleton pattern is better than creating singleton class with static instance?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
Can I learn java without any programming experience?
How is a structure different from array ?
How to handle a web browser resize operation?
What is hashing in java?
Where is jre installed?
What is the difference between call by reference and call by pointer?