Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 369 Page Views: 

Can an object be garbage collected while it is still reachable?



Posted By: Avi Date: 7 November 2010 05:18:53 PM
 Answer:

A reachable object cannot be garbage collected. Only unreachable objects may be garbage collected.


Posted By: avibtech


Date: 7 November 2010 05:18:53 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image Hlk5cw
Related Questions
Core Java : What is a marker interface ?

What is a marker interface ?

It is an interface that doesn’t contain methods and it is used to mark java classes that support cer....
Category: Core Java Date: 11/6/2010 4:25:51 PM
Core Java : What is the List interface?

What is the List interface?

The List interface provides support for ordered collections of objects
Category: Core Java Date: 11/6/2010 4:13:55 PM
Core Java : What is the highest-level event class of the event-delegation model?

What is the highest-level event class of the event-delegation model?

The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy.
Category: Core Java Date: 11/6/2010 2:35:53 PM
Core Java : Can the constructor be declared private?

Can the constructor be declared private?

Yes, in this case, you can’t create any instance for this class by using new.
Category: Core Java Date: 11/6/2010 2:15:46 PM
Core Java : What is the purpose of the System class?

What is the purpose of the System class?

The System class provides access to system resources.
Category: Core Java Date: 11/6/2010 2:03:52 PM