- Package
The package for wrapper is java.lang.
- Wrapper Objective
- Transform primitive type to/from string
- Defined some useful constants for primitive type
- Defined some useful methods for primitive type
- Number
It is the parent class of wrapper classes.
- Primitive Data Type & Wrapper
- Intege
- byte & Byte (8-bit)
- short & Short (16-bit)
- int & Integer (32-bit)
- long & Long (64-bit)
- Float
- float & Float (32-bit)
- double & Double (64-bit)
- char & Character (16-bit Unicode character)
In Java, char is encoded in UTF-16
- boolean & Boolean (ture or false)
- void & Void
- Primitive data type cast
- Others
- java.math.BigInteger & java.math.BigDecimal
Defined useful math's methods for big(large) integer/decimal, such as abs, sin, cos, log, random, round.
- Buffer
Defined in package java.nio, it is used to handle a buffer of data.
- ByteBuffer
- ShortBuffer
- IntBufer
- LongBuffer
- CharBuffer
- FloatBuffer
- DoubleBuffer
- xxx
- xxx
阅读(1652) | 评论(0) | 转发(0) |