Can we call Constants as Predefined Variables | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Can we call Constants as Predefined Variables

4th Jul 2020, 12:37 PM
Kalyan Reddy
Kalyan Reddy - avatar
5 Answers
+ 14
It's not such a case because constants' value is assigned by the user and it remains fixed once it is assigned and a variable's value is variable, so we can't call constants as predefined variables. Moreover, Java doesn't have built-in support for constants. But it's always good to ask about whatever you aren't sure.
5th Jul 2020, 2:11 PM
💖Miss Angelic💖
💖Miss Angelic💖 - avatar
+ 12
It's ok dear
5th Jul 2020, 2:52 PM
💖Miss Angelic💖
💖Miss Angelic💖 - avatar
+ 5
Not necessarily. You can define your own constants as well. But there are some predefined constants like PI and more in different languages.
4th Jul 2020, 12:40 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 2
Thank you
4th Jul 2020, 12:41 PM
Kalyan Reddy
Kalyan Reddy - avatar
+ 2
Thanks
5th Jul 2020, 2:30 PM
Kalyan Reddy
Kalyan Reddy - avatar