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
What is the use of static methods?
What ide should I use for java?
How a variable is stored in memory?
Explain the hierarchy of java exception classes?
What is object-oriented programming?
How do you implement tree mirroring in java?
Is space a char?
What is a copy constructor in java?
Can we use switch statement with strings?
Can a class have an interface?
What is comparator in java?
How do you join strings in java?
what is the difference between yielding and sleeping? : Java thread
What is api in java?
Can we use string in switch case in java?