[Java] The Primitive Type & Wrapper
时间:2010-09-13 来源:web_surf
- 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.
- boolean & Boolean (ture or false)
- byte & Byte (8-bit)
- short & Short (16-bit)
- int & Integer (32-bit)
- long & Long (64-bit)
- float & Float (32-bit)
- double & Double (64-bit)
- char & Character (16-bit Unicode character)
- void & Void
- 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
- java.math.BigInteger & java.math.BigDecimal
- xxx
相关阅读 更多 +