if i know the lenght of collection in hand, should I use Array or Arraylist? justify



if i know the lenght of collection in hand, should I use Array or Arraylist? justify..

Answer / guest

If lenght of collection is known Array is prefered to use
because Arraylist is resizable where as array has constant
size and array is more faster than ArrayList.

Is This Answer Correct ?    13 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

What are the disadvantages of using threads?

3 Answers   Oracle, SFS,


diff vector arraylist

4 Answers   Saka Solutions,


What is the map interface?

0 Answers  


What are the oops concept?

0 Answers  


What are transaction attributes?

0 Answers  






what is the RMI / IIOP?

3 Answers  


What is J2EE?

2 Answers  


What is deadlock?

2 Answers  


Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.

4 Answers   HeadStrong,


whats is mean by tiles in struts

2 Answers   SolutionNET,


function of extends and implements keywords?

2 Answers  


What are the JSP implicit objects ?

1 Answers   eMids,


Categories