Lowest Common ancestor in a Binary Search Tree and Binary Tree.
No Answer is Posted For this Question
Be the First to Post Answer
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 class is used to create Server side object?
What is Java Annotations?
How we can make copy of a java object?
How do I get the | symbol on my keyboard?
What is the private method modifier?
Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.
Different types of modifiers?
What about main() method in java ?
What kind of variables can a class consist?
what is hashmap& hashtable with example?
What is string pool?