What are void methods?


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

Post New Answer

More Core Java Interview Questions

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  


diff. b/w JAVA and javascript...

3 Answers   NIIT,


Is treeset sorted in java?

0 Answers  


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

6 Answers   Accenture, EDS,


Tell me the difference between an applet and a Japplet?

1 Answers  






Is multiple inheritance supported by java?

0 Answers  


What is OOPs & Why?

3 Answers  


What is the difference between the size and capacity of a vector?

0 Answers  


what is difference between Interface and abstract class

2 Answers   GCPL,


Is cout buffered?

0 Answers  


Is nullpointerexception checked or unchecked?

0 Answers  


Which category the java thread do fall in?

0 Answers  


Categories