0

Why are variables important in java?

3rd Sep 2018, 3:09 PM
himanshu
himanshu - avatar
2 Respuestas
+ 1
We need to store data somewhere.
3rd Sep 2018, 3:14 PM
Steppenwolf
Steppenwolf - avatar
+ 1
Java is an Object Oriented Programming (OOP) language. Therefore, Java depends on created objects in order to perform operations. Variables are objects. As a result, variables are the "back-bone" of OOP. As @Steppenwolf pointed out, variables store data and in order to perform more complex OOP operations like constructor overloading, mutations, etc. OOP requires variables, they are unavoidable.
3rd Sep 2018, 3:40 PM
Steven M
Steven M - avatar