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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

whats is mean by connectionpooling

1793


Can I have an action without a form?

871


What is the RMI and Socket?

840


Why doesn’t the focus feature on the tag work in every circumstance?

801


What is jboss?

801


How task's priority is used in scheduling?

2042


Write a program to show synchronization?

906


What is clustering? What are the different algorithms used for clustering?

832


What is the difference between long.class and long.type?

808


What is the difference between session and entity beans?

835


which book is better for jdbc ,servlets and jsp

1873


What are the call back methods in entity bean?

808


when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??

1338


When a thread blocks on i/o?

832


What do you need to set-up a cluster with jboss?

833