What is the order of arraylist in java?


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

Post New Answer

More Core Java Interview Questions

how to print the below in java? * * * * * * * * *

2 Answers  


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  


How can a gui component handle its own events in java programming?

0 Answers  


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

0 Answers  


what is meant by UP& DOWN casting in java?

6 Answers  






when we write class.forName("any one class"); what happens actually?what it will return?explain stepwise?

6 Answers  


Can we sort array in java?

0 Answers  


What is a instance variable in java?

0 Answers  


What is difference between final and finally in java?

0 Answers   Cyient,


What is the difference between C++ & Java?

78 Answers   College School Exams Tests, HAL, SUN, Syntel, TCS, Wipro,


What is cr keyboard?

0 Answers  


What is double in java?

0 Answers  


Categories