jQuery in Action, 2nd edition
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Java Keywords Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Java Keywords" Watch "Java Keywords" New topic
Author

Java Keywords

Animesh Shrivastava
Ranch Hand

Joined: Jul 19, 2004
Posts: 298
If a question asks for what are not java keywords, and "true", "false" , "null" are few of the given options. Then we can blindly mark these as the correct options, because "true", "false" and "null" are reserved words and not keywords

am i right?
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3829
yes , they are reserved literals . They are not keywords . But like if you have question which one is not keyword in Java and you have options like 1] null 2] new 3] import 3] include .. then choose include as an answer ... although it will not be in the exam ....
Wasim Ayoubi
Ranch Hand

Joined: Nov 21, 2004
Posts: 46
Hi there

open this link, you'll find the answer there
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html


Wasim Ayoubi<br />SCJA1.0(BETA), SCJP1.4, SCWCD1.4<br />Next ???
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18670
Practically speaking, the exam does not distinguish between keywords and reserved words. You won't be asked about either term - but you may be shown an example that won't compile because you've tried to use a keyword or reserved word as an identifier. So the distinction between the two doesn't matter, but you do need to know that both "for" and "true" are not allowed as identifiers.


"I'm not back." - Bill Harding, Twister
Animesh Shrivastava
Ranch Hand

Joined: Jul 19, 2004
Posts: 298
Thanks all,
So i expect such kinda questions not to appear in the exam.
Thanks again
 
jQuery in Action, 2nd edition
 
subject: Java Keywords
 
Similar Threads
please answer this question
Fundamantals
Keywords and Reserved words
Is null a keyword?
Reserved Words vs Keywords