If a class is marked final it means that the reference to this class cannot be changed and the methods marked final mean that they cannot be overridden
cognizance
Nov 23rd, 2006
The answer to the original question is ?yes? it is redundant. Some code analysis tools like checkstyle will highlight it as such.To correct the comment by psycho, marking a class as final prevents it from being extended.Marking a variable as final indeed prevents it from being reassigned.
Isn't it redundant to have to mark the methods final if the class is final?
Profile Answers by krishna_darl Questions by krishna_darl
Questions by krishna_darl answers by krishna_darl