KnowledgeBoat Logo
|
LoginJOIN NOW

Computer Science

What do you mean by a variable? Explain with an example.

Values & Data Types Java

29 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

18 Likes


Related Questions