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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
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: 3830
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: 18671
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java Keywords
 
Similar Threads
Keywords and Reserved words
Fundamantals
Reserved Words vs Keywords
Is null a keyword?
please answer this question