In essence, what is a variable in programming?

4th Oct 2017, 4:08 PM
Jeremías Oriej
2 Answers
+ 1
A variable stores any type of "values" It can be integer, double floating points(decimal number), character or even strings(letters) Here is an example: int i = 7; char ch = 'a'; float d = 6.735; string name = "Rahul"; And when you are going to use it Just call it System.out.println(i); System.out.println("ch"); Similarly, you can call other types also in similar ways So, declare the type, assign a value, and use it anywhere !!! I hope u got that
4th Oct 2017, 5:19 PM
#RahulVerma - avatar
Very thanks.
4th Oct 2017, 6:59 PM
Jeremías Oriej