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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Do const & goto keyword?" Watch "Do const & goto keyword?" New topic
Author

Do const & goto keyword?

Amit Goyal
Ranch Hand

Joined: Feb 21, 2006
Posts: 95
Hi,

Do the "const" and "goto" come under heading of keywords?
As I am aware of, these two are just reserved word not keywords.



Regards,

Amit Goyal
Damodar Mukhopadhyay
Ranch Hand

Joined: Jan 15, 2007
Posts: 98
Yau are right. They are resurve key words.


SCJP 1.5, SCWCD 1.4, SCBCD 5.0, next SCDJWS...
Aniket Patil
Ranch Hand

Joined: May 02, 2006
Posts: 218
The keywords const and goto are reserved, even though they are not currently used. This may allow a Java compiler to produce better error messages if these C++ keywords incorrectly appear in programs.


SCJP 5.0 | SCWCD 1.4 <br /> <br />If you don't know where you are going, any road will take you there!
Paul Lachance
Greenhorn

Joined: Nov 27, 2006
Posts: 10
for the purposes of the exam i would consider them keywords (they shouldn't be used as identifiers!)
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Originally posted by Paul Lachance:
for the purposes of the exam i would consider them keywords (they shouldn't be used as identifiers!)


That's right, if they are in a list of possible answers then I would select them as being Java keywords.
[ January 16, 2007: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Amit Goyal
Ranch Hand

Joined: Feb 21, 2006
Posts: 95
Thanks Guys!


Regards,

Amit Goyal
ram gaurav
Ranch Hand

Joined: Mar 29, 2006
Posts: 208
Like const , goto , we also have true,false,null as reserved.
Aniket Patil
Ranch Hand

Joined: May 02, 2006
Posts: 218
Like const , goto , we also have true,false,null as reserved.

They are called 'manifest constants'.
 
 
subject: Do const & goto keyword?