# on 21-Apr-2015 (Tue)

#### Annotation 150889474

 Byte type #java #primitive #programming #type #types byte: The byte data type is an 8-bit signed two's complement integer. It has a minimum value of -128 and a maximum value of 127 (inclusive). The byte data type can be useful for saving memory in large arrays, where the memory savings actually matters. They can also be used in place of int where their limits help to clarify your code; the fact that a variable's range is limited can serve as a form of documentation.

#### Annotation 150889479

 #odersky-programming-in-scala-2ed #scala If the number begins with a 0x or 0X, it is hexadecimal (base 16)

#### pdf

cannot see any pdfs

#### Annotation 150889483

 #odersky-programming-in-scala-2ed #scala If the number begins with a zero, it is octal (base 8)

#### pdf

cannot see any pdfs

#### Annotation 150889487

 #odersky-programming-in-scala-2ed #scala If the number begins with a non-zero digit, and is otherwise undecorated, it is decimal (base 10).

#### pdf

cannot see any pdfs

#### Annotation 150889491

 #odersky-programming-in-scala-2ed #scala If an integer literal ends in an L or l, it is a Long, otherwise it is an Int.

#### pdf

cannot see any pdfs

#### Annotation 150889495

 #odersky-programming-in-scala-2ed #scala The convention is that you include parentheses if the method has side effects, such as println(), but you can leave them off if the method has no side effects, such as toLowerCase invoked on a String