In a container there are 5 components. I want to display all
the component names, how will you do that?
No Answer is Posted For this Question
Be the First to Post Answer
Can you instantiate the math class in Java?
How can you write a loop indefinitely in java programming?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
what is the use of bean managed and container managed with example?
What is meant by null and void?
what is platform independence in java?
How do you end a program?
What is the difference between conversation & casting?
Define array. Tell me about 2-D array.
is memory to the abstract class allocated ..or objects not instantiated
What is difference between adapter class and listener?
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.