Professional Documents
Culture Documents
Object :
Object is the basic entity of object oriented
programming language. Class itself does nothing but
the real functionality is achieved through their
objects. Object is an instance of the class. It takes
the properties (variables) and uses the behaviour
(methods) defined in the class.
Instance :
One can have an instance of a class or a particular
object. The instance is the actual object created at
runtime.
Object obj = new Object();
Encapsulation
Encapsulation is the process of binding together the
methods and data variables as a single entity.
Primitive type Wrapper class
byte Byte
short Short
int Integer
long Long
float Float
double Double
Char Character
boolean Boolean
Parameters passing
Packages