File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Mock Exam Errata and the fly likes Dr. Hunt's error? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "Dr. Hunt Watch "Dr. Hunt New topic
Author

Dr. Hunt's error?

Guilherme Silveira
Greenhorn

Joined: Sep 21, 2001
Posts: 12
I find it weird I did not find questions about the ones ill mention....
It might be my misunderstanding of english, so please, let me know:
Question 6
Which of the following are Java keywords (as opposed to reserved words)?
A. goto
B. malloc
C. extends
D. FALSE
Answer in the mock: A,C
Comments: goto is a reserved word. Just like const. BTW null, true and false are literals and not keywords. At least thats what I read. Is it right?
Going further, it asks for the keywords and sazs (as opposed to reserved words).... so?
I have found many problems like these in other mocks that i took.... showing true, false and null as keywords.... can anyone assure me that they are literal's (by the java specification) and not keywords? goto and const are reserved and not keywords?

So, enough about keywords talking.... but please, help me with some specification base, as there is no other way around keywords...
Thanks a lot
Guilherme


------------------<br />TechnoBug
Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

I believe your understanding is correct. though I have heard that early versions actually did use goto as a keyword.
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
In the Sun objectives for the new 1.4 exam, they explicitly state:
Note: There will not be any questions regarding esoteric distinctions between keywords and manifest constants.

I don't know if this is true for the 1.2 exam as well, but it probably is. When I took the 1.2 exam this week, I was asked "Which of the following are legal identifiers".


Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Chen Lynn
Greenhorn

Joined: Aug 26, 2002
Posts: 3
I read several Books About JAVA,and some Mock Exam
I find SCJP treat reserved word as Keyword in many Papers.


I'm just a GreenHand!<br />Hope Be Friends !!<br />Email: stcx@21cn.com
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
FALSE isn't even a literal in Java. Now if we were talking about false...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Dr. Hunt's error?