Logo Passei Direto
Buscar

UML0 20-State , property, behavior and identity in java explained in simple words _ by Saket Autee _ Medium

User badge image
Juke David

em

Ferramentas de estudo

Material
páginas com resultados encontrados.
páginas com resultados encontrados.

Prévia do material em texto

Object Oriented Java State Of Object Class In Java Javaforbeginners
State , property, behavior and identity in java
explained in simple words.
2 min read · Sep 4, 2023
Saket Autee Follow
Listen Share
State, properties, behavior and identity are fundamental concepts of object oriented
programming languages like Java. These concepts help in modelling and interacting
with real world entities. If you are planning to not only learn java but also do real life
projects over it then this is a ‘must know’ concept.
Let me explain each term one by one
1. State : in Java, the "state" of an object refers to the data variables that describe its
current condition (in short data members). It’s like the characteristics of an
object. For example, if you have a "Car" object, its state might include attributes
like color, speed, and fuel level.
2. Property : Property and State both words are inter-changeable. In other words
both are same and represent same in an object. Now there is also another concept
called attributes. Attributes are just representation of data in an object like color
=”red”.
Open in app Sign up Sign in
Search
06/08/2026, 10:45 State , property, behavior and identity in java explained in simple words. | by Saket Autee | Medium
https://medium.com/@saket_89496/state-property-behavior-and-identity-explained-in-simple-words-b00b935cbf02 1/2
https://medium.com/@saket_89496?source=post_page---byline--b00b935cbf02---------------------------------------
https://medium.com/@saket_89496?source=post_page---byline--b00b935cbf02---------------------------------------
https://medium.com/@saket_89496?source=post_page---byline--b00b935cbf02---------------------------------------
https://medium.com/@saket_89496?source=post_page---byline--b00b935cbf02---------------------------------------
https://medium.com/@saket_89496?source=post_page---byline--b00b935cbf02---------------------------------------
https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Db00b935cbf02&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40saket_89496%2Fstate-property-behavior-and-identity-explained-in-simple-words-b00b935cbf02&source=---header_actions--b00b935cbf02---------------------post_audio_button------------------
https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Db00b935cbf02&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40saket_89496%2Fstate-property-behavior-and-identity-explained-in-simple-words-b00b935cbf02&source=---header_actions--b00b935cbf02---------------------post_audio_button------------------
https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Db00b935cbf02&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40saket_89496%2Fstate-property-behavior-and-identity-explained-in-simple-words-b00b935cbf02&source=---header_actions--b00b935cbf02---------------------post_audio_button------------------
https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Db00b935cbf02&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40saket_89496%2Fstate-property-behavior-and-identity-explained-in-simple-words-b00b935cbf02&source=---header_actions--b00b935cbf02---------------------post_audio_button------------------
https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Db00b935cbf02&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40saket_89496%2Fstate-property-behavior-and-identity-explained-in-simple-words-b00b935cbf02&source=---header_actions--b00b935cbf02---------------------post_audio_button------------------
https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Db00b935cbf02&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40saket_89496%2Fstate-property-behavior-and-identity-explained-in-simple-words-b00b935cbf02&source=---header_actions--b00b935cbf02---------------------post_audio_button------------------
https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Db00b935cbf02&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40saket_89496%2Fstate-property-behavior-and-identity-explained-in-simple-words-b00b935cbf02&source=---header_actions--b00b935cbf02---------------------post_audio_button------------------
https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Db00b935cbf02&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40saket_89496%2Fstate-property-behavior-and-identity-explained-in-simple-words-b00b935cbf02&source=---header_actions--b00b935cbf02---------------------post_audio_button------------------
https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2Fplans%3Fdimension%3Dpost_audio_button%26postId%3Db00b935cbf02&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40saket_89496%2Fstate-property-behavior-and-identity-explained-in-simple-words-b00b935cbf02&source=---header_actions--b00b935cbf02---------------------post_audio_button------------------
https://play.google.com/store/apps/details?id=com.medium.reader&referrer=utm_source%3DmobileNavBar&source=---top_nav_layout_nav-----------------------------------------
https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40saket_89496%2Fstate-property-behavior-and-identity-explained-in-simple-words-b00b935cbf02&source=post_page---top_nav_layout_nav-----------------------global_nav------------------
https://medium.com/?source=---top_nav_layout_nav-----------------------------------------
Methods represent behavior of an object
3. Behavior : Behavior is represented by ‘ Methods’ . It tells that what are the
functional actions a Java code can perform. For “Car” object, the behavior are
“accelerate”, “break”.
4. Identity : It makes an object unique and independent. Every object in java has some
unique identity associated with it. This is mostly done by a memory address. For our
“car” object it would be a serial number for each car model.
in conclusion State/Property is data members. Behavior is Methods and identity is
memory address for an object.
06/08/2026, 10:45 State , property, behavior and identity in java explained in simple words. | by Saket Autee | Medium
https://medium.com/@saket_89496/state-property-behavior-and-identity-explained-in-simple-words-b00b935cbf02 2/2

Mais conteúdos dessa disciplina