In the previous article, I have explained using Variables in Java.
In this article, I am going to explain using Data Types in Java.
Let’s get started.
Java for Testers – Using Data Types
We can define the variables with different Data Types, based on the type of data that we want to store into the variables.
For example, if you want to store integer value like 9 into ṭhe variable, then we can define the variable using int data type.
The following diagram depicts the different data types in Java:
Data Types in Java can be categorized into two types:
- Primitive Data Types
- Non-Primitive Data Types
The following are the different primitive data types in Java:
The following are the different Non-Primitive Data Types in Java:
Here concludes this article.
In the next article, I will explain and demonstrate the int data type in Java.
- > To learn more about Java, continue to the next post (Click on Next Post link below)
- > Check complete Java Tutorial Contents here (Click here)
Please leave your questions/comments/feedback below:
Happy Learning ?
Arun Motoori (www.QAFox.com)
On a mission to help the Testing Community in all possible ways.