Different Datatypes in Java

321 views.

The Datatypes are represent the type of data that we can store into memory. The datatypes in Java are classified into 3 types.

Primitive data type:

The primitive datatypes are predefined and designed to store a single value.

Example: int, char etc..

Derived data type:

The derived data types are predefined and designed to store a multiple values.

Example: array

User defined data type:

If a datatype is created by the user or the programmer, then it is called as user defined data type. Using the user defined data type we can store any number of values and any type of values, according to the application requirement.

Example: class

Note:  Will discuss next posts in detail of each data type

 

Leave a Reply