What is the difference between primitive and non primitive data types in Java?

The difference between primitive and non-primitive data types are as follows: Primitive types are predefined in Java. Non-primitive types are created by the programmer and is not defined by Java . Non Primitive types can be used to call methods to perform certain operations, while primitive types cannot.

Sizin İçin Seçtik  How can we use primitive data types as objects in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *