Data types in Java

In Java, There are two types of data types (Primitive data types, Non-primitive data types). Data types specify the sizes and values that can be stored in the variable.

Code :