What are constants?

0 votes
166 views
Anonymous User asked 27-Nov-2017 in programming by Anonymous User

What are constants?

1 Answer

1 votes
Anonymous User answered 27-Nov-2017 by Anonymous User

Constants!

What are constants?

Constant are equivalent to those variables whose values cannot be changed. Hence, having different keywords in different languages defining constant like “const” is been used in C/C++ and “final” in JAVA.

Well, it is not a primitive variable thus an instance of an actual object.

Cheers!