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

What are the benefits of detached objects?

0 Answers  


Explain ioc concept?

0 Answers  


What are the types of data passing mechanisams under JMS specification?

1 Answers  


In HashTable I am storing null value..then what is the error it will show

2 Answers   GM General Motors,


How are the elements of a cardlayout organized?

0 Answers  


what is activation monitor and what is its job?

1 Answers  


What is the difference between java class and bean?

0 Answers  


Does Java pass arguments by value or reference?

5 Answers   HeadStrong,


iam writing the contents to a excel through I/O i am putting first statement as WRITE and then READ(from excel) immediately..later user complains that he is not getting the date by using READ ..wat could be the situation

3 Answers   iGate,


can a static method be overridden

41 Answers   IBM, SolutionNET,


What are Benefits of Connection Pooling?

2 Answers  


What are synchronized methods and synchronized statements?

2 Answers   Adobe,


Categories