How do you sort a set in java?


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

Post New Answer

More Core Java Interview Questions

Why singleton pattern is better than creating singleton class with static instance?

0 Answers  


Explain the difference between an object-oriented programming language and object-based programming language?

0 Answers  


what is the use of clone() in real time scenario?

2 Answers   Quinnox,


What is an example of declaration?

0 Answers  


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

0 Answers  






What is a parameter in matrices?

0 Answers  


What is appletviewer?

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 r callable statement and give their proper use

2 Answers  


Differentiate constructor and a method and how are it be used?

7 Answers   Wipro,


What is default constructors?

0 Answers  


What is the access scope of protected access specifier?

0 Answers  


Categories