Java Lesson 5 - Data Types


    We will discuss more about Java Data Types in this tutorial. Data types plays a major role in java programming. As we discussed earlier, variables are used to store values temporarily. But these values can vary depending on the situations. Sometime, we want to store an integer value like 55 or 34. Sometime, we want to store a floating point value like 10.5 or 42.562. Sometime, we want to store a string value like "Hello" or "21/12/2021". Therefore the type of the value a variable can hold should be changed with the value we want to store. This is where Data Types come in handy. We use Data Types to allow variables to be able to hold different types of values.

Comments

Popular posts from this blog