File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Keywords and reserved words in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Keywords and reserved words in Java" Watch "Keywords and reserved words in Java" New topic
Author

Keywords and reserved words in Java

Helen Ma
Ranch Hand

Joined: Nov 01, 2011
Posts: 319
For the exam , there is a list of keywords (transient, abstract, int, case ...) that we may need to know.
Also, there are some reserved words in Java. Reserved words are not necessary keywords. Keywords are reserved words. "true", "false", null are reserved words.
I think "Double", "Float" , "String" are also reserved words.

How can I tell the difference between keywords and reserved words in Java?
John Jai
Rancher

Joined: May 31, 2011
Posts: 1372
List of keywords - JLS Keywords
I think "Double", "Float" , "String" are also reserved words.

No they are not reserved.
Dennis Deems
Ranch Hand

Joined: Mar 12, 2011
Posts: 547
You won't be asked to distinguish between keywords and reserved words for the exam. Be able to recognize them when you see them, and you'll be fine.


OCPJP 6
Seetharaman Venkatasamy
Bartender

Joined: Jan 28, 2008
Posts: 4503

consider some game say football,

key words are reserved words and currently in use ...

reserved words are bench people most of them are use in current context and you cant use some of them , because they might be kept in feature depends on game rules . (goto, const)...

just an Analogy.


Not everything that counts can be counted, and not everything that can be counted counts-Albert Einstein
 
 
subject: Keywords and reserved words in Java
 
Threads others viewed
Jai Question : 4 on keywords
keywords
Reserved words
A question for Maha
Reserved words vs. keywords
IntelliJ Java IDE