Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

true, false, null keyword or ????

 
Suman Nagelia
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone tell me specifically for the purpose of exam whether we should conside true, false and null as keyword or not? As in some books it's listed under keywords.
Plese help me out.
Thanks
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check out this objective from the 1.4 exam:
SECTION 4: LANGUAGE FUNDAMENTALS
Identify all Java programming language keywords. Note: There will not be any questions regarding esoteric distinctions between keywords and manifest constants.
in other words -- don't worry about it, for the purpose of the exam assume they are keywords.
 
Suman Nagelia
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.
 
Luciano Queiroz
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
null, true, false >>> are NOT considered keywords!
They are literals!
 
Suman Nagelia
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So Luciano you mean to say I shouldn't consider them as keyword for purpose of exam.
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Suman Nagelia:
So Luciano you mean to say I shouldn't consider them as keyword for purpose of exam.

Regardless of what they really are, for the sake of the exam, you will not have to differentiate between literals and keywords in terms of true, false, and null.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic