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
Is a boolean variable?
What is the primitive type short?
How do you create a method in java?
Explain the concept of proper inheritance?
what is the significance of listiterator in java?
Implement two stacks using a single array.
How to create packages in java?
Can I use % with real numbers?
Is java call by reference?
Is java a super set of javascript?
Why inputstreamreader is used in java?
What are 4 pillers of object orinted programming?
How do you find the maximum number from an array without comparing and sorting?
What is a dynamic array in java?
What does 3 dots mean in java?