基本数据类型
package javastudy;
public class DataTypeTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a = 100;
// a=100000000000;
// The literal 100000000000 of type int is out of range
// int类型的文字100000000000超出范围。
a = 100000000;
boolean flag = true;
flag = false;
char c = 'A';
}
}
还没有评论,来说两句吧...