1.变量必须拥有的类型
2.变量必须拥有的名字
变量:具备名字和类型的可以存放类型匹配的数据的量
public class Student { public static void main(String[] args) { byte x = 127; short y = 32767; int z = 1000000; long l = 10000000; float f = 2.5f; double d = 10.2234243234; char c = ‘a‘; boolean b = true; System.out.println(x); } }
原文:http://www.cnblogs.com/dragon1013/p/5031566.html