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 Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Keywords" Watch "Keywords" New topic


revup triv

Joined: Aug 17, 2003
Posts: 27
I have a question about const & goto keywords. They are deprecated.. so if in the question they ask select the Java keywords from following & have this 2 in the option should it be selected or not? I thought not to... but Dan's exams have it as a valid answer choice.
Anupreet Arora
Ranch Hand

Joined: Jun 17, 2003
Posts: 81
Well CONST and GOTO are definitely keywords, and they are not deprecated. Deprecated would mean that they were used erlier but now their usage is not advised.
They have been reserved for future use.
Here is what JLS sys on these two
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.
I agree. Here's the link:
subject: Keywords