What is adapter class?
Answers were Sorted based on User's Feedback
Answer / shailendra
it is a class,we can creat our classes as sun classes one of
the adapter class.
| Is This Answer Correct ? | 16 Yes | 56 No |
What is java Applet?
Can we inherit the constructor in a Class?please give one example.
how to compile jsp?
What is the difference between Static and final?
Why is stringbuffer not immutable?
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.
why Java does not support multiple inheritances?
Can we override protected method in java?
What is mean by collections in java?
Can I import same package/class twice?
waht happens when a return type ,even void is specified for a constructor?
What is the importance of finally block in exception handling?