Variable`s in java
Before you use a variable in java, you must declare it, specifying its data type.
The int types is only one kind of simple variable you can use. mentioned here are the various possibilities.
- Integer – these types are byte, short, int and long, which hold signed, whole-value numbers.
- Floating-point numbers – these types are float and double, which hold signed floating-point numbers.
- Characters – This is the char type, which holds representation of characters such as letters and numbers.
- Boolean – This type is designed to hold only two types of value; true and false.