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

What are the oops concept?

1132


What is the relationship between the canvas class and the graphics class?

1076


When a thread blocks on i/o, what state does it enter?

1158


Is the session factory thread safe?

1234


what are getters and setters in Java with examples?

1834


Why do threads block on i/o?

1322


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?

2143


how to use debug in my elipse to solve problems that exist in my project

2331


What is the difference between the session.update() method and the session.lock() method?

1087


Is it possible to stop the execution of a method before completion in a sessionbean?

1147


Describe, in general, how java's garbage collector works?

1082


Why is string immutable in java?

1144


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

1169


How primary key is implemented in Oracle?

2500


what is handle?

2421