File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

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?
Is finalize a Keyword?
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.

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
I agree. Here's the link:
subject: keywords:generic,strictfp, widefp,volatile etc.....
It's not a secret anymore!