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



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

Can I import same package/class twice? Will the jvm load the package twice at runtime?

0 Answers  


Is a class a subclass of itself?

0 Answers  


What is the relationship between an event-listener interface and an event-adapter class?

0 Answers  


How to pass parameters in RMI?

0 Answers  


How to implement RMI in Java?

0 Answers   TCS,


why we use main in java?

4 Answers  


How to deploy Jar, War files in J2EE?

0 Answers   HCL,


What is the need of serialize?

2 Answers   Wipro,


How two threads will communicate with each other?

2 Answers  


how java is os independent language ?

3 Answers  


Explain Object Serialization and it can be used?

3 Answers   Infosys,


In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

0 Answers  


Categories