• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

keywords

 
sam mathew
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know whether true, false and null are keywords.
As per http://java.sun.com/docs/books/jls/html/3.doc.html#229308,
(which is a sunsite), these three words are not listed as keywords..
 
Gerry Timmermans
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to Brogden's "Java 2 Sun Certified Java Programmer" exam prep true, false & null are java reserved words. It classifies them as special literal values but they're listed in the same table with all the other java keywords.
Gerry
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are reserved words, but not keywords.
 
Ash Rai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
So finally what is to be done when we are asked to select keywords from a list?
1. http://enthuware.com/jqplus/FAJQuestions.html
says that even though they are not keywords we should select them!!
2.RHE says they are keywords.
3.SUN site does not.
4.Khalid Mughal says they are reserved literals!!
I am really confused!!
 
Angela Poynton
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the FAQ? www.javaranch.com/certfaq.jsp
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic