+ 1

What variables do and why do we need them?

Why do we need to write variables in java? They teach us in the first few lessons. So what do they actually do?

2nd Mar 2018, 8:52 PM
Bayanbulagia🌿
Bayanbulagia🌿 - avatar
2 odpowiedzi
+ 4
They store information so that you and the program can utilize it in whatever way you need, otherwise you'd never be able to store information in order to compare it with other information, etc... Variables make it so you can easily store information into memory, and retrieve it, without having to know or remember the memory address. It provides you with a named means of dealing with it, which makes it a lot easier than it originally was.
2nd Mar 2018, 9:05 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 2
as they said: they store values, they act like helpers on constructing your code,,, in general without them there will be no useful and powerful apps & softwares
2nd Mar 2018, 9:39 PM
Nura Programmer
Nura Programmer - avatar