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



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

Answer / javamasque

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

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More Core Java Interview Questions

When should I use abstract classes and when should I use interfaces?

2 Answers  


What is the difference between I ++ and ++ I in java?

0 Answers  


How to provide security in java

0 Answers   Infosys, TCS, Tech Mahindra,


What is meant by javabeans?

0 Answers  


what happens when a thread cannot acquire a lock on an object? : Java thread

0 Answers  






Is there is any error if you have multiple main methods in the same class?

10 Answers   Infosys, Wipro,


What error occurs if a try-catch-finally statement sequence does not have a catch clause?

4 Answers  


Can we sort a map in java?

0 Answers  


How do u pass data from one jsp to another jsp?

3 Answers   Fidelity,


What is compiler and what its output.

0 Answers   Cognizant,


What is the history of java?

0 Answers  


What is arrays sort in java?

0 Answers  


Categories