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

Why is the main method declared static?

588


What is ellipsis in java?

583


Explain the features of interfaces in java?

558


What is struts in java?

581


How java enabled high performance?

587






Explain about fail safe iterators in java?

570


What are the advantages of java over C++?

721


Explain the importance of thread scheduler in java?

601


What is the difference between inner class and nested class?

555


What is java jit compilers?

562


Difference between object and reference?

687


Difference between method overloading and overriding.

583


What is unicode in java?

509


what is encapsulation in java? Explain

667


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

615