Skip to content

Instantly share code, notes, and snippets.

@ajduke
Created May 13, 2012 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajduke/2686876 to your computer and use it in GitHub Desktop.
Save ajduke/2686876 to your computer and use it in GitHub Desktop.
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