What is the order of arraylist in java?
No Answer is Posted For this Question
Be the First to Post Answer
how to print the below in java? * * * * * * * * *
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.
How can a gui component handle its own events in java programming?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
what is meant by UP& DOWN casting in java?
when we write class.forName("any one class"); what happens actually?what it will return?explain stepwise?
Can we sort array in java?
What is a instance variable in java?
What is difference between final and finally in java?
What is the difference between C++ & Java?
78 Answers College School Exams Tests, HAL, SUN, Syntel, TCS, Wipro,
What is cr keyboard?
What is double in java?