What is java?what are local variables?
Answers
Answered by
0
Answer:
java is a general purpose programming language
Explanation:
Java is a programming language that developers use to create applications on your computer.
A local variable is a variable which is either a variable declared within the function or is an argument passed to a function. As you may have encountered in your programming, if we declare variables in a function then we can only use them within that function.
A local variable in Java is a variable that's declared within the body of a method. Then you can use the variable only within that method. Other methods in the class aren't even aware that the variable exists. ... Local variables are not given initial default values.
Similar questions
History,
4 months ago
Chemistry,
4 months ago
English,
4 months ago
English,
8 months ago
Economy,
8 months ago
Social Sciences,
11 months ago
Computer Science,
11 months ago
Math,
11 months ago