Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Final Instance variable
public class FinalVariable {
// in the instance initializer expression, or while declaration itself
// final <type> <variable_name> = <initializer expression>;
final int finalInstanceField = 5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.