ICSE Class 8 Computer Studies Question 6 of 33

Introduction to Java & BlueJ — Question 6

Back to all questions
6
Question

Question 6

What are variables? How are they different from Constants?

Answer

A variable is a named location in the memory which stores data temporarily. A variable has a unique name, a type and a size that is used to identify it in a program.

Difference between variables and constants is that the value of variables can change during the execution of the program whereas value of constants are fixed and does not change during program execution.