what is the purpose of class "Object" which is base class
for all classes?
Answer Posted / vikki
The Object class sits at the top of the class hierarchy
tree in the Java development environment. Every class in
the Java system is a descendent (direct or indirect) of the
Object class. The Object class defines the basic state and
behavior that all objects must have, such as the ability to
compare oneself to another object, to convert to a string,
to wait on a condition variable, to notify other objects
that a condition variable has changed, and to return the
object's class.
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
Can we catch more than one exception in single catch block?
What is string length in java?
a thread is runnable, how does that work? : Java thread
Is simpledateformat safe to use in the multithreaded program?
Why is it called a string?
Can you access the private method from outside the class?
What is java jit compilers?
What are disadvantages of java?
Name some classes present in java.util.regex package.
What is java in detail?
What is assembly condition codes?
How many boolean functions are there?
What is difference between == and === in js?
What means public static?
What do you mean by stream pipelining in java 8?