Hi Exam Cram says byvalue,future,inner,rest,cast,generic,operator, var are some of the reserved words not currently in use other than const and goto. But i didnt get any compiler error when i used it in my program(i got error when i used const and goto..) Why is this?
Chitra, those "extra" words were once being considered for inclusion in the Java 1 language spec, but they were dropped. Some authors who had gotten an advanced copy of the spec included them, and after they were dropped from the official spec, their books were out-of-date. goto and const are still reserved words. They just aren't implemented in the current java spec. They are reserved mainly for the benefit of C++ programmers and those porting old C++ code to java. Use the link Jamal gave you as the current correct version of the Java reserved words. [ May 25, 2002: Message edited by: Rob Ross ]
why assert isn�t in teh keywords list? it is valid in java 1.4...
Francisco<br />SCJP<br />please use the [code][/code] tags when showing code.Click <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=ubb_code_page" target="_blank">here</a> to see an example.