Computer Science
What is the significance of declaring a variable in Java?
Values & Data Types Java
3 Likes
Answer
Declaring a variable helps the Java compiler to know the type of value that we want to store in the variable The compiler uses this information to allocate proper memory for storing the variable.
Answered By
1 Like