what is the role of xml in core java?? and how we can use
it?? can somebody give a sample program with explanation and
from where i can read more about xml?????
No Answer is Posted For this Question
Be the First to Post Answer
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.
What are the advantages of exception handling in java?
How you can create a radio buttion using Checkbox class?
What is the diffrence between inner class and nested class?
What are the benefits of java?
How do you implement tree mirroring in java?
How do you get the length of a string in java?
What is collection api?
Is java supports multiple inheritance? explain?
What is a string what operation can be performed out with the help of a string?
Is it possible for a yielded thread to get chance for its execution again?
in a constructor what happen if u call super and this in the same class? i know that it is not possible to call both in the same one? if we call what will happen?