Datatypes >
Siva Nookala - 20 Feb 2017

Data types In Java

Java is a strongly typed language, which means every data or information has a type Known To Be Data Type and that Data Type can not be changed once declared. So every variable, literal or any other information has a type. This strong Data Type checking helps Java to become more safe and robust.

Java has various Data Type to store various types of information. These Data Type are broadly classified into two types - primitive data types and non-primitive Data Type.

Primitive data types

Non - Primitive Data Type

  • The non-primitive Data Type are defined using the primitive data types. All the classes created by user in Java are considered non-primitive data types. They are also some times referred as user-defined data types. A user defined data type might contain two integers, five floats, three booleans etc