Posts

Showing posts with the label variable

Variables and Datatypes in JAVA

Image
Variable :-           V ariables are just a name given to a particular memory location, where it can store the data. Variables are just like label which points to a memory location. This memory location is used to hold the data or store the data.    Examples:-                           int num;                        char mchar;                                    float denum;                               boolean tf_result; Here in the above examples,                       num, mchar, denum,  tf_result represents the name of the variables. and int, char, float, boolean defines the type of dat...