Java   View all facts   Glossary   Help
syntactic unit > symbol > literal > numeric literal > integer literal
Next numeric literalfloating point literal    Upnumeric literal

integer literal comparison table
Subject indicate by have example
hexadecimal integer literalprepending 0x (zero and x) to the number
  • 0x12 is the hexadecimal number 12
  • 0xFF is the hexadecimal number FF
long integer literalputting the letter L (in upper or lower case) after the number4L
octal integer literalprepending a zero (0) to the number0777 is the octal number 777

Next numeric literalfloating point literal    Upnumeric literal