Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

difference between  ejb,struts,hibernate,spring and jsp

2811


Have you used threads in Servelet?

2473


Is the infobus client side only?

1062


what is the use of State Factories?

2328


What is the purpose of the wait(), notify(), and notifyall() methods?

974


What is message driven beam?

1002


What are transaction attributes?

1045


Where can I ask questions and make suggestions about seam?

1016


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

982


what is meant by JRMP?

2268


What are the call back methods in entity bean?

1011


What is the difference between a static and a non-static inner class?

1090


What is the diffrence between a local-tx-datasource and a xa-datasource?

996


What is the argument type of a programs main() method?

1064


What are the different methods of identifying an object?

1005