原始类型也是类对象?

时间:2016-05-13 10:59:12

标签: java class

在我阅读java.lang.Class文档时,我发现了以下说明:

  The primitive Java types ({@code boolean},
 * {@code byte}, {@code char}, {@code short},
 * {@code int}, {@code long}, {@code float}, and
 * {@code double}), and the keyword {@code void} are also
 * represented as {@code Class} objects.

有人可以解释一下,“原始Java类型也表示为类对象”是什么意思?

0 个答案:

没有答案