Java Variable
A variable is a location in memory (storage area) to hold data.
Java Variable
A variable is a location in memory (storage area) to hold data.
In simple terms, it is a storage place that has some memory allocated to it. Basically, a variable is used to store data.
To indicate the storage area, each variable should be given a unique name (identifier).
A variable name can consist of alphabets (both upper and lower case), numbers, and the underscore ‘_’ character. However, the name must not start with a number.
Leave a Reply