Basic Data Types in java

Variables are only saved memory areas to store values. This implies that when you make a variable, you save some space in memory. In light of the data type of a variable, the working framework distributes memory and chooses what can be put in the held memory. Consequently, by appointing diverse data types to variables, you can store whole numbers, decimals, or characters in these variables.

There are two data types accessible in Java:

  • Reference/Object Data Types
  • Primitive Data Types


For any query or issue, feel free to discuss on