is null a keyword in java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stmfc
    New Member
    • May 2007
    • 65

    is null a keyword in java

    is null a keyword in java?

    in the book "Programmer 's Guide to Java Certification, A: A Comprehensive Primer, Second Edition" by By Khalid A. Mughal, Rolf W. Rasmussen
    null true false are listed in the "Reserved Literals in Java" table not in the
    "Keywords in Java" table.

    but in the mock exam of the same book answer of one question is given as:
    "Java has a keyword null, but not NULL"

    in another book (written by jamie jaworski) i see this explanation:
    "NULL, null, and main are not Java keywords."

    now i am really confused. how should i answer the questions related with java keywords in java programmers exam?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by stmfc
    is null a keyword in java?

    in the book "Programmer 's Guide to Java Certification, A: A Comprehensive Primer, Second Edition" by By Khalid A. Mughal, Rolf W. Rasmussen
    null true false are listed in the "Reserved Literals in Java" table not in the
    "Keywords in Java" table.

    but in the mock exam of the same book answer of one question is given as:
    "Java has a keyword null, but not NULL"

    in another book (written by jamie jaworski) i see this explanation:
    "NULL, null, and main are not Java keywords."

    now i am really confused. how should i answer the questions related with java keywords in java programmers exam?
    null is not a keyword.
    P.S Sometimes it is best to read books written by the creators of the language itself.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by r035198x
      P.S Sometimes it is best to read books written by the creators of the language itself.
      Ever so true; there are a lot of sloppy half baked authors out there that just want
      a piece of the cake, no matter whether or not they've understood the subject they're
      scribbling about: they're only in it for the money.

      kind regards,

      Jos

      Comment

      • jx2
        New Member
        • Feb 2007
        • 228

        #4
        so which book would you recomend?
        personally i'm trying to read tutorial at java.sun.com
        but i found it a bit to easy and a bit boring :/ oups :-)
        so whats your recomendation for someone who already know a bit about programing (in c/c++ familly)

        regards
        jx2

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          Originally posted by jx2
          so which book would you recomend?
          personally i'm trying to read tutorial at java.sun.com
          but i found it a bit to easy and a bit boring :/ oups :-)
          so whats your recomendation for someone who already know a bit about programing (in c/c++ familly)

          regards
          jx2
          If you are done with Sun's tutorial go ahead and try the JLS itself.
          You'll find all the links here.

          Comment

          • jx2
            New Member
            • Feb 2007
            • 228

            #6
            Originally posted by r035198x
            If you are done with Sun's tutorial go ahead and try the JLS itself.
            You'll find all the links here.
            nice list :-)
            thanks a lot

            jx2

            Comment

            Working...