please explain these keywords they are not in any of my 6 books. generic reserved but will it be used for templates? strictfp widefp operator byvalue volatile const Is finalize a Keyword?
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
widefp,operator,byvalue are NOT keywords. They do compile. javac is the best tool. Compile the following.
class foo { int super ; // Not OK int strictfp ; // Not OK int void ; // Not OK int synchronized ; // Not OK int synchronize ; // OK int instanceof ; // Not OK int f*g; // Not OK int #r; // Not OK int t-y; // Not OK int @g; // Not OK int widefp; // OK int operator; //OK int byvalue; //OK int volatile; // Not OK int const; // Not OK }
Jane Griscti
Ranch Hand
Joined: Aug 30, 2000
Posts: 3141
posted
0
Hi ... All the keywords are listed in the JLS Hope that helps.
I wonder why widefp and a few others are missing from the official jls?
The following character sequences, formed from ASCII letters, are reserved for use as keywords and cannot be used as identifiers (�3.8): Keyword: one of abstract default if private this boolean do implements protected throw break double import public throws byte else instanceof return transient case extends int short try catch final interface static void char finally long strictfp volatile class float native super while const for new switch continue goto package synchronized