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

Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.

0 Answers   Rolta,


How much is a java license?

0 Answers  


Explain Linked HashSet

1 Answers  


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

0 Answers  


Can we declare register variable as global?

0 Answers  






Name the types of mouse event listeners ?

2 Answers  


Write a program to print all permutations of string?

0 Answers  


what is singlton class?where it is use in real time senario.

1 Answers   Wipro,


What is difference between “==” and equals()?

1 Answers   IBM,


Can we override private methods?

0 Answers  


What are meta-annotations?

0 Answers   Cyient,


What is java thread dump, how can we get java thread dump of a program?

0 Answers  


Categories