Hi
finally only null, true, false are reserved word all the other are keyword.
comment on it.
According to the JLS null, true and false are literals. they are not key words and the exam won't require you to find the difference between keywords and literals . its just enough if you know that they cant be used as identifiers, i.e. they are reserved words. ( This is present in K & B chapter 1 )
if i declare a object inside a method then the reference variable become local whose life time is same as the method lifetime.what will happen to the object.can i say that once the method is finished the object is eligible for GC since the ref var scope is within the method only.
Once a method has completed all objects local to it are eligible for GC ( of course unless a reference is returned by that method or some other refernce is given to that object )
what about the final refrence variable inside a method.is the keyword final have any effect on my above conclusions...
final identifier is just used to make sure that the value of a variable or its refernce cant be changed. It does not have any thing to do with the scope of a variable.

[ April 28, 2005: Message edited by: Jagadesh cs ]
Cheers,<br />Jagadesh.<br /> <br />--------------------------------<br />SCJP 1.4 , SCBCD 1.3 , SCWCD 1.4<br />--------------------------------