| 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: 1778
|
|
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.
|
 |
 |
|
|
subject: Keywords and reserved words in Java
|
|
|