How do you sort a set in java?
No Answer is Posted For this Question
Be the First to Post Answer
Why singleton pattern is better than creating singleton class with static instance?
Explain the difference between an object-oriented programming language and object-based programming language?
what is the use of clone() in real time scenario?
What is an example of declaration?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
What is a parameter in matrices?
What is appletviewer?
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?
what r callable statement and give their proper use
Differentiate constructor and a method and how are it be used?
What is default constructors?
What is the access scope of protected access specifier?