Data Types In Java
Data types A data type is nothing but simply it’s a type of data . That means data type is a data storage format that can contain a specific type or range of values. We are also known that , Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in the memory. Based on the data type of a variable, the operating system allocates memory and decides what can be stored in the reserved memory. Whenever we store some value in variable , then the one which defines the type of that variable is called the data type. Data type defines the size and value a variable can hold. There are two types of data type in java Primitive data Non primitive data type Primitive data types are predefined types of data, which are supported by the programming language. For example, integer, character, and string are all primitive data types. There are 8 primitive types...