标签:
目录:
基本数据类型
基本数据类型 8种 :
byte, short, int, long
float, double
char, boolean
1. java的其他方面是完全面向对象的,但基本数据类型不是,和c,c++一样,基本数据类型仅表示单个值,因为将基本数据类型设计为对象会极大地降低性能。
2. 整型变化:
3. 字符型, char。
char ch1,ch2; ch1 = 88; ch2 = ‘x‘; System.out.println(ch1); // X System.out.println(ch2); // x System.out.println(++ch1); // Y System.out.println(++ch2); // y
4. float,double,boolean。 有对应的对象封装模式,Float,Double,Boolean,同c#。
标签:
原文地址:http://www.cnblogs.com/wj033/p/4585395.html