Working With Object Data Types Java 2
Working With Object Data Types Java 2
Data types are the type of the data for which the memory will be allocated in the
variable.
byte float
short double
int boolean
long charr
----------------------------------------------------------------------
Reference data types are created using constructors of the classes.
They are visible only within the method or block it is decarled in.
So they are available for the entire class methods, constructors and blocks.
So they are available for the entire class methods,constructors and blocks.
Static variable or class variables are created when program starts and destroyed
when the program ends.
There will be only one copy of each class variables per class.