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 is object in java?

519


What is package private scope in java?

523


Why are functions called methods in java?

510


Difference between start() and run() method of thread class?

576


What is function overriding and overloading in java?

566






What are three advantages of using functions?

523


What is an example of character?

534


What happens when you add a double value to a string?

527


Is string is a data type in java?

581


Is set ordered?

526


What is stringreader?

512


Why bytecode is called bytecode?

570


What is locale in java?

561


Explain the difference between an Interface and an Abstract class?

612


Who is the owner of java?

522