看到这个问题,我也呆了一下,void到底算不算基本数据类型呢?然后我去看了下JDK的API...我只看了API,所以我也不能保证正确性...找到了java.lang.Void类,看了下他的描述(The Class object representing the pseudo-type corresponding to the keyword void.)大概意思是这个类对象代表伪类关键字void。然后我去看了下java.lang.Byte的描述(The Class instance representing the primitive type byte.)很明显的写出了基本数据类型primitive type这个关键字。所以我觉得在JDK里void不算基本数据类型...(结论仅供娱乐)[/quote]
感谢你的回答,!
看到这个问题,我也呆了一下,void到底算不算基本数据类型呢?然后我去看了下JDK的API...我只看了API,所以我也不能保证正确性...找到了java.lang.Void类,看了下他的描述(The Class object representing the pseudo-type corresponding to the keyword void.)大概意思是这个类对象代表伪类关键字void。然后我去看了下java.lang.Byte的描述(The Class instance representing the primitive type byte.)很明显的写出了基本数据类型primitive type这个关键字。所以我觉得在JDK里void不算基本数据类型...(结论仅供娱乐)