Detailed analysis of java basic types and wrapper classes
•
Java
The Java language provides eight basic types. There are six numeric types (four integers, two floating points), one character type, and one Boolean.
1. Integers: include int, short, byte, long, and the initial value is 0
2. Floating point type: float, double, initial value is 0.0
3. Character: char. The initial value is a space, that is' '. If it is output, the effect will not be seen on the console.
4. Boolean: Boolean, the initial value is false
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码