answersLogoWhite

0


Best Answer

The Object class has 11 methods (plus the constructor). They are: clone(), equals(), finalize(), getClass(), hashCode(), notify(), notifyAll(), toString(), wait(), wait(long timeout), wait(long timeout, int nanos).

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many methods does the Object class have?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can instance methods replace class methods in programming?

No. never. An instance method cannot replace a class method because: Instance Methods - are normal methods that are linked to a class object instance Class Methods - are static methods that are not linked to any class object. These methods are not interchangeable and will create too many issues if we try to use one in place of the other.


What are the methods available in Object class?

equalshashcode


What class is the super class for ALL Java classes?

The Object class, in the java.lang package, sits at the top of the class hierarchy tree. Every class is a descendant, direct or indirect, of the Object class. Every class you use or write inherits the instance methods of Object. You need not use any of these methods, but, if you choose to do so, you may need to override them with code that is specific to your class


What does a class specify about an object?

Object is an instance of a class. Example: In general, animal is a class where as, tiger is an object.


What is the difference between a class method and an instance method?

Instance methods can be called by the object of a Class whereas static method are called by the Class. When objects of a Class are created, they have their own copy of instance methods and variables, stored in different memory locations. Static Methods and variables are shared among all the objects of the Class, stored in one fixed location in memory.Static methods cannotaccess instance variables or instance methods directly-they must use an object reference. Also, class methods cannot use the this keyword as there is no instance for this to refer to.


What is basic unit of encapsulation?

A Class. It encapsulates its variables and methods into it.


What is the difference between a class method and object in object-oriented C?

Class methods are the member functions that act upon member variables. An object is an instance of a class. C does not support object-oriented programming, but C++ does.


What are Instance variables java?

Instance variableA variable, part of an Object. These might better be called perObject variables since each instantiated object of this class will have its own private copy of this variable. They are allocated when the object is allocated via new. Static methods may not access the instance variables of their class (or any other class for that matter), other that via some object reference, e.g. anObject.someField. Static methods may even access private instance variables in their class via some object reference.


Math class is an example of which class?

It is a static class; meaning that all the methods can be accessed directly from the class name, without instantiating an object.It is a static class; meaning that all the methods can be accessed directly from the class name, without instantiating an object.It is a static class; meaning that all the methods can be accessed directly from the class name, without instantiating an object.It is a static class; meaning that all the methods can be accessed directly from the class name, without instantiating an object.


Is the default access specifier same as protected?

A private member of a class can only be accessed by methods of that class. A protected member of a class can only be accessed by methods of that class and by methods of a derived class of that class.


What are methods and how are these related to an object?

Methods are functions defined for a class. Therefore they are accessible for all objects based on the class (depending on visibility; for example in Java: if they are public).


What happens when you write Static word to a class or Methods?

there would just be one instance of the object no matter how many times you instantiate it.