What is an object in Java and what are its benefits?
Answer Posted / 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 |
Post New Answer View All Answers
What are the benefits of operations in java?
What are generic methods?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What is a line break?
Difference between vector and arraylist.
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
Can we override data members in java?
What are the advantages of inner classes?
What are the elements of java?
What does pointer mean?
Can you instantiate the math class?
What is the declaration statement?
What are the methods used to implement for the key object in the hash map?
Can a class have an interface?
What is size_t?