Computer Science, asked by rkRahul7685, 8 months ago

What is java?what are local variables?

Answers

Answered by savleenkaurugly
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