1. 程式人生 > >String 是最基本的資料型別嗎

String 是最基本的資料型別嗎

Java 中的基本資料型別只有 8 個:byte、 short、 int、 long、 float、 double、

char、 boolean;

除了基本型別(primitive type)和列舉型別(enumeration type),

剩下的都是引用型別(reference type)。

所以String不是基本的資料型別