Last Updated: February 25, 2016
·
722
· raulraja

Use **final** to communicate your intentions

You can use the JAVA keyword 'final' to communicate your intention for extension and use of variables.

public final class ThisShouldNeverBeExtended {
}

public final neverOverrideThisMethod() {
}

private final int thisFielfValueWillNeverChange;

final int thisLocalVariableValueWillNeverChange = 0;