Variables and Constants in Java
Created by Piyush Garg about a year ago
No description provided
takeaway points : variables are those whose values are bound to change and constants are those entities whose values are not to be changed in whole program
variables are needed to store the data in a sensible and systematic way to further use it in program for various other data manipulations , variables are like containers which are meant to store the data and in future we can refer them to use the data .
general syntax : data_type var_name = value ;
In strongly typed language we need to tell the compiler about the type of data which will be stored in variables .
learnt about rules of naming variables .
and we cannot redefine / redeclare same variable.
does any one know any book for java ?