Edited, memorised or added to reading queue

on 21-Apr-2015 (Tue)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

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.

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on




#odersky-programming-in-scala-2ed #scala
If the number begins with a 0x or 0X, it is hexadecimal (base 16)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#odersky-programming-in-scala-2ed #scala
If the number begins with a zero, it is octal (base 8)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#odersky-programming-in-scala-2ed #scala
If the number begins with a non-zero digit, and is otherwise undecorated, it is decimal (base 10).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#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.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#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
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs