Computer Science
Distinguish between Variables and Constants
Values & Data Types Java
6 Likes
Answer
| Variables | Constants |
|---|---|
| Value of variables can change while program is running. | Value of constant remains the same throughout the execution of the program. |
| Variables can be of Primitive or Non-Primitive Data Types. | Constant are categorized as Integer literals, Real literals, Character literals, String literals, Boolean literals, Null literal. |
Answered By
3 Likes