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

Typo in "The Numbers Classes"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • docs
    • None

      In http://docs.oracle.com/javase/tutorial/java/data/numberclasses.html

      Line: byte mask = 0xff

      Explanation: Byte maximum value is 127 or 0x7f, but 0xff = 255. This code will throw a compilation error.

      Replace 0xff to a lower number.

            bhoran Bernard Horan (Inactive)
            rgallard Raymond Gallardo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: