aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes keywords Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "keywords" Watch "keywords" New topic
Author

keywords

Ankur kothari
Ranch Hand

Joined: Sep 06, 2009
Posts: 531
Are null,true,false ,goto keywords? what is the diffeence between a keyword and reserved literal? Any i expect questions on keywords in the scjp exam?


Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

See this. Goto is a keyword; null, true and false are literals. You should expect questions on the exam which use a keyword as an identifier while the question seems to be about method overloading i.e. sometimes the questions trick you into focusing on something else and actually there's a problem somewhere else...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ankur kothari
Ranch Hand

Joined: Sep 06, 2009
Posts: 531
That means I have to remember all those keywords and the literals and see if the question violates the rule by using those as an identifier...
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

If you see the keywords list, the keywords are not very tough to remember. In fact I think you'll not need to remember them, they are used in daily programming so we remember them without any special efforts. You might get a question that uses an identifier like goto or const (which are unused keyword so people don't remember them). The SCJP exam is very tricky, so the best way to get high score is to give a LOT of mock exams. That way you'll know almost all of the traps that the exam might try to catch you into. (I'm sure you noticed the keywords try and catch in my last sentence )
Ankur kothari
Ranch Hand

Joined: Sep 06, 2009
Posts: 531
hey by the way what is strictfp, transient, and volatile?
Salil Vverma
Ranch Hand

Joined: Sep 06, 2009
Posts: 253

strictfp, transient, and volatile are java keywords and their sense is as mentioned below

transient - This keyword is used to avoid the persistence of any variable during the serialization. You might find the detailed explanation here


Regards
Salil Verma
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: keywords
 
Similar Threads
about keywords
java keywords
keywords
Key Words
r they keywords or literals?