HomeJava

Java for Testers – Using Data Types

Java for Testers – Using Data Types

<<Previous Post                    << Complete Tutorial>>                        Next Post>>

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

Data Types in Java can be categorized into two types:

  1. Primitive Data Types
  2. Non-Primitive Data Types

The following are the different primitive data types in Java:

  1. byte
  2. short
  3. int
  4. long
  5. float
  6. double
  7. char
  8. boolean

The following are the different Non-Primitive Data Types in Java:

  1. String
  2. Array
  3. etc.

Here concludes this article.

In the next article, I will explain and demonstrate the int data type in Java.

Next Steps:

  • > 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.

<<Previous Post                    << Complete Tutorial>>                        Next Post>>

If you like this article, share it on LinkedIn using the below button:

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *