Hi everyone, I have a confussion! Please follow: (a) Boolean (b) BOOLEAN (c) boolean I know (c) is a keyword but what about (a) and (b)? Thanks for your reply. regds, mondal
Tom Tang
Ranch Hand
Joined: Dec 24, 2000
Posts: 133
posted
0
First of all, remember all the Java keywords are lowercase. So you know immediately, there'is only one possible answer. Secondly, check the most authoritative Java keyword list at JLS 3.9. Disregard all other lists after memorizing this one.
Originally posted by Tom Tang: First of all, remember all the Java keywords are lowercase. So you know immediately, there'is only one possible answer. Secondly, check the most authoritative Java keyword list at JLS 3.9. Disregard all other lists after memorizing this one.
Thank you Tom. Tom I see that I am still in dbt with the keywords goto and const. RHE books says they are reserved but have no meaning in Java. Would you please help further?
Tom Tang
Ranch Hand
Joined: Dec 24, 2000
Posts: 133
posted
0
goto and const are reserved but not used, so you can't use them as varible names. Just think of them as spare tires.
Tom Tang
Ranch Hand
Joined: Dec 24, 2000
Posts: 133
posted
0
According to JLS, 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.
sabyasachi mondal
Ranch Hand
Joined: Dec 26, 2000
Posts: 33
posted
0
Originally posted by Tom Tang: According to JLS, 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.
Thank you again. So still in the jexam2 (if any) I can say that goto is a reserved word.
chinmay naidu
Greenhorn
Joined: Dec 02, 2000
Posts: 5
posted
0
But what about cast .Is it key word?In some books it mentioned that it is a key word.Also I am having doubt reg true ,false and null .Actually these are literals.Shall we consider them as KEYWORDS ?i.e.,If these options are included in multiple choices of identifing key words.
Beginner Ben
Greenhorn
Joined: Jan 12, 2001
Posts: 5
posted
0
SOrry for my naive question. What exactly does JLS mean? I heard it a lot. Is it a book? And where can I find it. thanks a lot Ben
I may be wrong here, but back to the original question of: BOOLEAN Boolean boolean (or something like this) java is case sensitive so if I was taking the exam I would look at this and think I knew boolean was correct, but that it couldn't be the other two because then they would be something different. Maybe that's looking into it too much, and there is nothing stoping them from making those keywords as well just cause they can, though they aren't as far as I know. Just rambling.
Rajpal Kandhari
Ranch Hand
Joined: Aug 26, 2000
Posts: 126
posted
0
Hello Mondal, "Keywords are reserved words but reserved words are not keywords." Correct me if i am wrong on this: There are 50 Keywords is java. Out of which const and goto are reserved keywords word not currently in use. Three identifiers are reserved as predefined literals (A literal denotes a constant value) in the language: null, true, false. But for the purposse of exam: null, true and false could be taken as keywords because they have some pre-defined meaning and use in java. Regards Raj.
Regards,<P>Raj.<BR>-------------------------<BR>Afforts should be Appriciated.<BR>-------------------------