What is classname class in java?


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

Post New Answer

More Core Java Interview Questions

What does three dots mean in java?

0 Answers  


Can you make a constructor final?

0 Answers  


how to handle exceptions in core applications?

2 Answers   CSS,


What is abstract class constructor called?

0 Answers  


Why there are some null interface in java? What does it mean?

0 Answers  






What is a singleton class in Java?

0 Answers  


what is the JNDI?

3 Answers  


Differences between jdk 1.4 and 1.5

6 Answers   SoftSol, TCS, Wipro,


Given: 10. interface A { void x(); } 11. class B implements A { public void x() { } public voidy() { } } 12. class C extends B { public void x() {} } And: 20. java.util.List list = new java.util.ArrayList(); 21. list.add(new B()); 22. list.add(new C()); 23. for (A a:list) { 24. a.x(); 25. a.y();; 26. } What is the result? 1 Compilation fails because of an error in line 25. 2 The code runs with no output. 3 An exception is thrown at runtime. 4 Compilation fails because of an error in line 20.

3 Answers  


what is difference between abstract factory and factory design patterns?

0 Answers  


Can we have two main methods in a java class?

0 Answers  


Which Component subclass is used for drawing and painting?

1 Answers  


Categories