Quantcast
Channel: S. Nageswara Rao, Corporate Trainer – Way2Java
Viewing all articles
Browse latest Browse all 505

Java Made Clear: Difference between const and final Keywords

$
0
0
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 be reassigned. 1 […]

Viewing all articles
Browse latest Browse all 505