Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


What is an object in Java and what are its benefits?

Answers were Sorted based on User's Feedback



What is an object in Java and what are its benefits?..

Answer / sumit pal singh

An object in java is a runtime entity of a java class. It has two characteristics 1. State (variables) and 2. Behavior (methods). It has below benefits

1. By creating the object of one class into another class we can get the state and behaviour of another class . i.e. Composition is best example for using the object.

Is This Answer Correct ?    2 Yes 0 No

What is an object in Java and what are its benefits?..

Answer / amit

In Java,The object will have its own state and access to all of the behavior defined by the class.

Is This Answer Correct ?    1 Yes 0 No

What is an object in Java and what are its benefits?..

Answer / chantiraji

Object is an instance of a class. The object will have its own state and access to all of the behavior defined by the class.

Is This Answer Correct ?    0 Yes 0 No

What is an object in Java and what are its benefits?..

Answer / javamasque

An object in java is a runtime entity of a java class. It has two characteristics 1. State (variables) and 2. Behavior (methods). It has below benefits
1. Encapsulation (Data hiding): It hides data and internal implementation from other objects.
2. Modularity (task modulation): It contains a set of activities for a specific task of an application.
3. Reusability: It facilitates reusability of functionality through inheritance.
4. Easy maintenance: It enhance the readability and understandability of an application. It also helps the developer to trace bugs in an application.
5. Pluggable/Unpluggable: An erroneous/unwanted object can be removed and a new object can be added in an application.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer



More Core Java Interview Questions

Which is not Object in Java?

10 Answers   Honeywell,


How to create a base64 decoder in java8?

0 Answers  


what are the different non-access specifiers in java?

5 Answers  


What is data abstraction? Elaborate with example?

4 Answers   BMC, TCS,


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

0 Answers  






When do we need to use internal iteration? When do we need to use external iteration?

0 Answers  


What is an anonymous class?

1 Answers   IBM,


Describe the Big-O Notation.

0 Answers   Global Logic,


What is a concrete classes? Is Java object class is concrete class?

0 Answers   Infosys,


How does serialization work

3 Answers   Ordain Solutions,


Does isempty check for null?

0 Answers  


why String class is immutable.

5 Answers   iGate,






Categories