Styrow.dev
Question 79 of 247
Java Topic: General medium

What is a Local Variable

Question

What is a Local Variable

Answer

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.