0
In essence, what is a variable in programming?
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
0
Very thanks.