Can Create a New primitive datatype in Java

后端 未结 5 2161
闹比i
闹比i 2020-12-11 02:53

First thing I want to clarify here, this question is because of curiosity. I am not facing any issue.

There are many primitive types available in Java byte

5条回答
  •  感动是毒
    2020-12-11 03:40

    You cannot create your own primitive datatype.

    As the Java documentation explains: A primitive type is predefined by the language and is named by a reserved keyword.

提交回复
热议问题