It is a basic unit of Object-Oriented Programming and represents the real life entities. A typical Java program creates many objects, which as you know, interact by invoking methods. An object consists of :
Example of an object can be dog. Objects correspond to things found in the real world. For example, a graphics program may have objects such as circle, square, menu. An online shopping system might have objects such as shopping cart, customer, and product.