Search your topic in Java2share
Home > FAQs
eXTReMe Tracker

CoreJava FAQs

Untitled Document

Q209. Can an unreachable object become reachable again?
An unreachable object may become reachable again. This can happen when the object's finalize() method is invoked and the object performs an operation which causes it to become accessible to reachable objects.

Q210. When is an object subject to garbage collection?
An object is subject to garbage collection when it becomes unreachable to the program in which it is used.

Q211. What method must be implemented by all threads?
All tasks must implement the run() method, whether they are a subclass of Thread or implement the Runnable interface.

Q212. What methods are used to get and set the text label displayed by a Button object?
getLabel() and setLabel()