Java: 

Local Variables

0
Local variable cannot be using any of the access level since its scope is only inside the method.

Final is the only non access modifier that can be applied to local variable.

Local variables are not assigned a default value, hence they need to be initialized.

There is no specific rule for naming a local variable. All the rules of variables are applied to local variables.

Below mentioned are the rules for naming a local variable.

Variable names are case sensitive.
There is no limitation on the length of a local variable.
If a variable name is of one word only then all characters should be in lower case.

    Local Variables