Are the equals() and hashCode() protected methods of object class?

Answer Posted / javamasque

No, the equals() and hashCode() are public methods of object class.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 8 data types in java?

755


What is polymorphism in java? What are the kinds of polymorphism?

804


What is a flag and how does it work?

744


What is a “stateless” protocol ?

759


What are the restrictions imposed by a Security Manager on Applets?.

2318


How does linkedlist work in java?

709


What are three advantages of using functions?

765


What is the use of a conditional inclusion statement in Java ?

820


What are different types of multitasking?

736


What is java util function?

737


Can we make the abstract methods static in java?

808


What is the benefit of singleton pattern?

750


Is there any difference between nested classes and inner classes?

822


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

758


how to open and edit XML file in Weblogic???

1784