KnowledgeBoat Logo
|

Computer Applications

Define variable with an example.

Values & Data Types Java

233 Likes

Answer

A variable represents a memory location through a symbolic name which holds a known or unknown value of a particular data type. This name of the variable is used in the program to refer to the stored value.
Example:

int mathScore = 95;

Answered By

144 Likes


Related Questions