Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4340046

Glossary says "null" is a keyword but it's a literal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • docs
    • None
    • beta
    • generic
    • generic

      The online glossary at http://java.sun.com/docs/glossary.html says that
      "null" is "A Java(TM) programming language keyword used to specify an
      undefined value for reference variables."

      In fact, "null" is not a keyword at all, but a -- the only -- literal
      value of the null type. See JLS 3.10.7 on page 27.

            asommere Alan Sommerer (Inactive)
            pbk Peter Kessler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: