A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Java Basic Data Types

Basic Data Types in Java

What are the Basic Data Types in java ?

Variables are nothing but reserved memory locations to store values. This means that when you create a variable in a program, you reserve some space in main-memory of computer.

Based on the data type of a variable, the operating system allocates memory and decides what can be stored in the reserved memory. Therefore, by assigning different data types to variables, you can store integers, decimals, or characters in these variables.

There are two data types available in Java:

  1. Primitive Data Types

  2. Reference/Object Data Types