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

Differences between applications and applets?

3 Answers  


What event results from the clicking of a button?

0 Answers  


Is “abc” a primitive value?

0 Answers  


Is multiple try block is possible in single java Application......

3 Answers  


Do I have to use jsps with my application?

0 Answers  






What is the difference between RMI registry and OS Agent?

0 Answers  


1) Scenario: I developed my application on local system and everything is perfect and tested. Now on UAT this application is deployed on clustered server environment. They are logical or physically clustered. But application is not working over there.  What is the issue with application?  What are the first things which come in your mind?

1 Answers   L&T,


What is a tasks priority and how is it used in scheduling?

0 Answers  


whats is mean by object and class?

1 Answers   Saka Solutions,


What is runnable?

2 Answers  


What is the relation between the infobus and rmi?

0 Answers  


How can I avoid validating a form before data is entered?

0 Answers  


Categories