Data types In JavaJava 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
![]() 2-min video about data types in Java
|