What is object in Java with realtime example?

It is any real-world thing that has properties and actions . In other words, an entity that has state and behavior is known as object in Java. Here, state represents properties and behavior represents actions or functionality. For example, book, pen, pencil, TV, fridge, washing machine, mobile phone, etc.

Sizin İçin Seçtik  What is object in real life?

Leave a Reply

Your email address will not be published. Required fields are marked *

What is object in Java with realtime example?

It is any real-world thing that has properties and actions . In other words, an entity that has state and behavior is known as object in Java. Here, state represents properties and behavior represents actions or functionality. For example, book, pen, pencil, TV, fridge, washing machine, mobile phone, etc.

Sizin İçin Seçtik  What is an example of an object in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *