Are 'true','null','false' java keywords. The whole topic has got contrdictory views. please help. I even read in one of the answers to the mock test that they are actually not key words. but they are as far as the exam is concerned. please help
true, false, and null are reserved literals in Java. Literals denote a constant value, while keywords are reserved identitiers predefined in Java. While I haven't taken the exam yet, I would bet that it would be incorrect to say those 3 are keywords.
Please see the Java Language Keywords with Sun's note: "Here's a list of Java's keywords. These words 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."
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD
I just had the craziest dream. This tiny ad was in it.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop