from the K&B book (Objects that are created in a method also need to be considered. When a method
is invoked, any local variables created exist only for the duration of the method.
Once the method has returned, the objects created in the method are eligible for
my question: does that mean the Objects which are created in method are alos eligible for garbage colleciton?
if so in the below example this Objectis eligible for GC am i right?
and one more thing:
could you please tell me whtat this line is in the above code? as it gives compilation error ,,it looks like abstract method but the class is not abstract ,, so how can we invoke it there? or it's just there to show you that you can invoke some methods??
``Worry does not empty tomorrow of its sorrow; it empties today of its strength.''