What is default size 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

why would you use a synchronized block vs. Synchronized method? : Java thread

0 Answers  


Explain thread in java?

0 Answers  


How can you handle java exceptions?

0 Answers  


How does arraylist work in java?

0 Answers  


What is string [] args?

0 Answers  






In the below example, what will be the output?

0 Answers  


What is the difference between compiler and jvm?

0 Answers  


whats is the use of final,in which situation final can be used in the application?

2 Answers   DNS,


What is meant by local variable and instance variable?

0 Answers  


How to Create A Wapper Class in core Java and Why are Use in java?

2 Answers   Amdocs,


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

0 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  


Categories