What is a priority queue java?
No Answer is Posted For this Question
Be the First to Post Answer
How do you check if a number is a perfect square?
What restrictions are placed on method overloading and method overriding?
What is keyword in oop?
Explain the importance of import keyword in java?
What is meant by class loader and how many types are there?
What is a databasemetadata?
What is string and its types?
How will you override default serialization mechanism in java
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?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What are the uses of synchronized keyword?
Why is stringbuffer faster than string?