Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Is void a data type in java?

0 Answers  


Which method cannot be overridden in java?

0 Answers  


What is the difference between == and === javascript?

0 Answers  


What is the use of arrays tostring () in java?

0 Answers  


How to stop a thread in java? Explain about sleep () method in a thread?

0 Answers  


when System.out.println("") is executed what happens in the back ground?

2 Answers  


Is there any sort function in java?

0 Answers  


What is deserialization and how do we do deserialization?

3 Answers   Synechron,


What is a qms manual?

0 Answers  


Why is String immutable?

0 Answers   Atos Origin,


interface X{ void m1(); void m2(); } class Child2 extends Object implements X { public void m1(){ System.out.println("Child2 M1"); } public void m2(){ System.out.println("Child2 M2"); } } public class ParentChildInfterfaceDemo { public static void main(String[] args){ X x = new Child2(); X x1 = new Child2(); x.m1(); x.m2(); x.equals(x1); } } Will the above code work? If yes? Can you please explain why the code x.equals(x1) will work as the equals method is called on interface reference vaiable?

2 Answers  


Explain the differences between static and dynamic variables?

0 Answers   Fidelity,


Categories