原文链接: http://simon-c.iteye.com/blog/1016031 引用 For type byte, the default value is zero, that is, the value of (byte)0. For type short, the default value is zero, that is, the value of (short)0. For type int, the default value is zero, that is, 0. Fo
Java有八种基本数据类型,所谓基本类型就是说存储时仅存在栈中,那么与之相对就是引用类型,引用类型既存在栈里又存在堆里,栈内存放堆内地址. 八种基本类型分别为byte short int long float double bool char ,在<Head First Java>中有一句话,叫做:注意!熊不该抓毛毛狗,Be Careful!Bears Shouldn't Ingest Large Furry Dogs.专门用于记忆这八种数据类型,每个单词首字母都对应一种类型.不过我觉得还是