What are void methods?
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?
diff. b/w JAVA and javascript...
Is treeset sorted in java?
What do u mean by wrapper Class? What do u mean by Jvm... How do u change JVM for other OS? Or No need to Change ...? its like tricky
Tell me the difference between an applet and a Japplet?
Is multiple inheritance supported by java?
What is OOPs & Why?
What is the difference between the size and capacity of a vector?
what is difference between Interface and abstract class
Is cout buffered?
Is nullpointerexception checked or unchecked?
Which category the java thread do fall in?