aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes keywords:generic,strictfp, widefp,volatile etc..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "keywords:generic,strictfp, widefp,volatile etc....." Watch "keywords:generic,strictfp, widefp,volatile etc....." New topic
Author

keywords:generic,strictfp, widefp,volatile etc.....

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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
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
Hi ...
All the keywords are listed in the JLS
Hope that helps.


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Rolly R.
Greenhorn

Joined: May 07, 2004
Posts: 1
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
 
Consider Paul's rocket mass heater.
 
subject: keywords:generic,strictfp, widefp,volatile etc.....