Can two objects have same hashcode?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

For class CFoo { }; what default methods will the compiler generate for you>?

0 Answers   Amazon,


Difference between static and dynamic class loading.

0 Answers  


What are the fileinputstream and fileoutputstream?

0 Answers  


What is a numeric string?

0 Answers  


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  






What is the map interface in java programming?

0 Answers  


How do I run java on windows?

0 Answers  


Difference between string, stringbuffer and stringbuilder?

0 Answers  


can u give one sinario when you use Abstract Class and When you use Interface.

5 Answers   ITC Infotech,


What are the java ide's? Explain

0 Answers  


In java, what is the difference between method overloading and method overriding?

0 Answers  


Which is a valid identifier?

0 Answers  


Categories