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

How to perform selection sort in java?

0 Answers  


Can substring create new object?

0 Answers  


what is difference between business delegate and data access object(dao)? in java?

1 Answers  


What are use cases?

0 Answers  


What will happen when using pass by reference in java?

0 Answers   HCL,


Why is the type for real numbers called double?

0 Answers  


What is static method with example?

0 Answers  


When can you say a graph to be a tree?

0 Answers   Amazon,


what is mean by synchronization?

3 Answers   BOB Technologies, GCPL,


If I only change the return type, does the method become overloaded?

0 Answers  


What are scalar data types?

0 Answers  


Is java code slower than native code?

0 Answers  


Categories