goto,const,strictfp are reserved--you cannot use any of these words as names in your Java programs. true, false, and null are not keywords but they are reserved words, so you cannot use them as names in your programs either. so the right answer would be goto,const & strictfp
Vinod,what u said is correct. If i changed the question as, which of the following are reserverd words? goto const continue case what would be the choices.(i'm totally confused with keywords and reserved words) regards Javeed
goto,const,continue,case -> all these are reserved & Java keywords.What it means is that you cannot use any of these words as names in your Java programs. now true & false are boolean literals. they are also reserved words but they r not keywords. same goes for null also. You can think of it as the keywords are not values whereas tru,false,null represent some values. So when they say reserved it means they r kept for a reason, u can't use them in any other way.
- Vinod<br />-------<br />SCJP2
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop