A. The Three Inherent Characteristics of an Object:
In Java, an Object is a software bundle of related variables and methods modeling a real-world or conceptual entity. Every object possesses three fundamental characteristics:
- State (Attributes / Characteristics): The static and dynamic data properties possessed by the object at any given instant. In Java, state is stored in Instance Variables (fields).
Example (Student Object): Roll number (101), Name ("Aarav"), Marks (94.5), Grade ('A'). - Behavior (Actions / Operations): What the object can do or what can be done to the object in response to messages. In Java, behavior is defined by Member Methods (functions).
Example (Student Object):calculateGrade(),displayDetails(),payFees(). - Identity (Unique Distinctness): The unique individuality that distinguishes an object from all other objects in computer memory, even if two objects possess identical state values. In Java, identity is established by the object's unique Heap Memory Address.