What is an Object?

What is an Object?

Asked on January 18, 2019 in Java.
Add Comment


  • 1 Answer(s)

    An entity that has state and behavior is known as an object e.g. chair, bike, marker, pen, table, car etc. It can be physical or logical (tangible and intangible). The example of an intangible object is the banking system.

    An object has three characteristics:
    State: represents the data (value) of an object.
    Behavior: represents the behavior (functionality) of an object such as deposit, withdraw, etc.
    Identity: An object identity is typically implemented via a unique ID. The value of the ID is not visible to the external user. However, it is used internally by the JVM to identify each object uniquely.

    Answered on January 25, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.