Advanced Java Question:

What is difference between object state and behavior?

Tweet Share WhatsApp

Answer:

If you change the state of an object, you ask it to perform
a behavior. An object stores its states in a field e.g.
variables, and demonstrates its behavior through methods.

Download Advanced Java PDF Read All 24 Advanced Java Questions
Previous QuestionNext Question
If i learn Java, what kind of applications can i create that will help Banking, Retail, Hotel, Logistics industry?Can we have more than one action servlet?