"JAVA core technology Volume 1" reading notes

Creative Commons License Creative Commons

Chapter 3 Basic structure

  1. JAVA no unsigned type.
  2. Float type suffix F, F suffix is ​​no floating point double.
  3. In hexadecimal, denoted by p index, rather than e. E.g. 0x1.0p-3
  4. &&, || evaluated in accordance with the "short" embodiment, if the first operand is a result of the expression can be determined, the second number is not calculated
  5. &, | Before the results obtained, we must calculate the value of the two operands.
  6. >>> operator with high filler 0, sign bit filling with high >> without <<<
  7. Great value classes math.BigInteger, math.BigDecimal, * + can not use add, multiply

Chapter 4 objects and classes

  1. Constructor: the same name and type, is always accompanied by the implementation of the new operator is called, no return value. No local variables defined in the constructor of the same name and instance fields.
  2. Be careful not to write accessor method returns a reference variable objects! To return the object reference to a variable, it should first be cloned (clone)

Guess you like

Origin blog.csdn.net/L20902/article/details/91950257