• 欢迎光临~

Java: Primitive and Non-Primitive Data Types

开发技术 开发技术 2022-11-23 次浏览
  • Primitive types are predefined (already defined) in Java. Non-primitive types are created by the programmer and is not defined by Java (except for String).
  • Non-primitive types can be used to call methods to perform certain operations, while primitive types cannot.
  • A primitive type has always a value, while non-primitive types can be null.
  • A primitive type starts with a lowercase letter, while non-primitive types starts with an uppercase letter.
  • The size of a primitive type depends on the data type, while non-primitive types have all the same size.Java: Primitive and Non-Primitive Data Types

 

程序员灯塔
转载请注明原文链接:Java: Primitive and Non-Primitive Data Types
喜欢 (0)
违法和不良信息举报电话:022-22558618 举报邮箱:dljd@tidljd.com