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 static import in java?

765


How to solve the problem of generating the unique hash keys with hash function?

1702


Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?

832


What 4 doubled?

756


Name component subclasses that support painting in java programming?

855


Difference between stack and queue?

829


Is map sorted in java?

843


Can we declare the static variables and methods in an abstract class?

794


What is an escape character in java?

805


Is integer immutable in java?

771


Can a class be declared as static?

935


How does java pattern compile work?

762


What is a substring of a string?

839


How we can declare a static variable?

899


What does arrays sort do in java?

786