• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

keyword

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is null a key word???
are true & false keywords??
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by javaji:
Is null a key word???
are true & false keywords??

No, none of these are keywords, keywords are modifiers, operators, primitive datatypes etc.
null, true and false are literal values just like 1 or 2.0 (an integer and double literal). Since they are literal values, the are also reserved words which means that you cannot use them as identifiers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic