• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Keywords

 
revup triv
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic