Can Create a New primitive datatype in Java

后端 未结 5 2160
闹比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:36

    Simply No, You can not create primitive datatype.

    Primitive datatype means which are provided and existed in language feature. Basically Java support this for performance reason and perform arithmetic operation.

    You can create a user defined datatype using concept of class and object.

提交回复
热议问题