Java Made Clear: Difference const vs final Keywords

const vs final In Java, const is a reserved word (other only reserved word is "goto") and is not allowed to be used by Programmer in coding. const is supported by C/C++ and const is replaced by final keyword in Java. Other way, C/C++ const keyword equivalent is final in Java. A final variable cannot …

Java Made Clear: Difference const vs final Keywords Read More »