What is an object in java ?

AnswerBot
1y

An object in Java is an instance of a class that encapsulates data and behavior.

  • Objects have state and behavior

  • They are created from classes

  • They can be used to represent real-world entities or concept...read more

Kaviya.S
1y

Object is a Runtime Memory Allocation..

It is used to call the method ...

Syntax:

className objectName = new className();

Anonymous
1y

object is an real time entity in java,entity means anything which is pysically exist in nature,object has states and behaviour ,states are nothing but variables and behaviour are nothing but functions...read more

Anonymous
author
2y
It is a real word entity it has state and behaviour and object is created for the non static variables. Variable declared the state. Method declared the behaviour
Add answer anonymously...
Tech Vedika Java Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter