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
Which container method is used to cause a container to be laid out and redisplayed?
Difference between loadclass and class.forname?
Can we sent objects using Sockets?
Why won’t the jvm terminate when I close all the application windows?
What is the diffrence between a local-tx-datasource and a xa-datasource?
How a component can be placed on Windows?
Name the eight primitive java types.
What are the types of scaling?
What is mdb and what is the special feature of that?
Which class is the immediate superclass of the menucomponent class?
What is glasgow?
What is the difference between static and non-static with examples?
What is a policy?
How would you create a button with rounded edges?
what are RemoteObjects?