Home > DeveloperSection > Interviews > What is a Local Variable?

Posted on    June-21-2015 11:15 PM

 Java Java 
Ratings:
 1 Answer(s)
  366  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    June-21-2015 11:15 PM

Variables defined inside methods, constructors or blocks are called local variables. The variable will be declared and initialized within the method and it will be destroyed when the method has completed.

Don't want to miss updates? Please click the below button!

Follow MindStick