Purpose of writing the article: Organize your knowledge by investigating the basics of Java and variables.
--A container for storing data values. (Also called a container) --Java has various types of variables, for example:
--*** String </ font> : Stores text like "Hello". String values are enclosed in double quotes. -- int </ font> : Stores an integer that does not include decimals such as 123 and -123. -- float </ font> *** Stores floating point numbers, including decimal numbers such as 19.99 and -19.99. --*** char </ font> : stores a single character such as'a'or'B'. Character values are enclosed in single quotes. -- boolean </ font> ***: Stores the value and specifies two states: true or false.
Recommended Posts