Objects or references which of them gets garbage collected?
Answer / Taruna Singh
In Java, both objects and references can be subject to garbage collection. However, only the reference itself is garbage collected, not the object it refers to.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the topics in advance java?
where lives in jvm
What are the features of junit?
Is java ee a framework?
Does isempty check for null?
Can we overload destructor in java?
What is valid keyword in java?
What is array in java?
Can a constructor call the constructor of parent class?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
What is an example of character?
What is integer valueof?