Computer Applications
What do you mean by constant? Explain with an example.
Values & Data Types Java
193 Likes
Answer
The keyword final before a variable declaration makes it a constant. Its value can't be changed in the program.
Example:
final int DAYS_IN_A_WEEK = 7;
Answered By
129 Likes