Computer Science, asked by vishmish34, 6 months ago

What are objects in java?
Give five examples..
I want 5 to 6 line answers as it is long answer .
Surely you will be marked as brainliest.​

Answers

Answered by nandinik1069
3

Answer:

please mark me as a brainliest

Explanation:

Objects have states and behaviors. Example: A dog has states - color, name, breed as well as behaviors – wagging the tail, barking, eating. An object is an instance of a class. Class − A class can be defined as a template/blueprint that describes the behavior/state that the object of its type support.

please mark me as a brainliest

Answered by AnnieStar
45

Question:

What are objects in java?

Answer:

  • Objects have states and behaviors.
  • An object is an instance of a class.
  • When you do work in Java, you use objects to get the job done.
  • You create objects, modify them, move them around, change their variables, call their methods, and combine them with other objects.

Examples of objects:

Examples state, behavior, identity, method, anonymous object and more

Similar questions