In Java, do primitive types and arrays have a containing package?

后端 未结 4 602
野性不改
野性不改 2020-12-11 05:28

In Java, do primitive types and arrays have a containing package?

Probably not, but just want to be certain.

4条回答
  •  甜味超标
    2020-12-11 05:48

    No they don't have,as they aren't class.

    Primitive : A primitive type is predefined by the language and is named by a reserved keyword.

    array : An array is a container object that holds a fixed number of values of a single type.

提交回复
热议问题