This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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.
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.