I have noticed that there is the const keyword in Java. It reminded me of things like static and final variables there.
But why was it created without anyone actually using it?
From the JLS #3.9:
The keywords
constandgotoare reserved, even though they are not currently used. This may allow a Java compiler to produce better error messages if these C++ keywords incorrectly appear in programs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With