aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
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: 451
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
Bartender

Joined: May 31, 2011
Posts: 1776
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: 808
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.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Keywords and reserved words in Java
 
Similar Threads
Jai Question : 4 on keywords
Reserved words
A question for Maha
Reserved words vs. keywords
keywords