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

Posted on    June-21-2015 11:15 PM

 Java Java 
 1 Answer(s)
  562  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

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