Hello There, Guest! RegisterLogin with Facebook
Login with Facebook

>>> Anna University Sixth Semester Question Bank Collection (R2013) ECE,MECH,CSE,IT,EEE,CIVIL,EIE
>>> Anna University Study Materials for all Departments
>>> Anna University Question Papers : April May June 2015 Question Papers | Nov Dec 2014 and Jan 2015 Question Papers

Register or Login to Submit Study Materials , Shoutbox and also to access Many Features !!

Vidyarthiplus Shop :: Handwritten Premium Lecture Notes
Share your Study Materials with us
Share your Study Materials with us : Click Here

Java: Local Variables

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.



Recommend on Google

Vidyarthiplus Whatsapp