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
Define the remote object implementation?
How to deploy Jar, War files in J2EE?
How would you create a button with rounded edges?
Which container method is used to cause a container to be laid out and redisplayed?
How are the elements of a borderlayout organized?
What is the difference between the session.update() method and the session.lock() method?
whats is mean by tiles in struts
What are the pros and cons of detached objects?
Explain the different types of memory used by jvm?
How many times may an objects finalize() method be invoked by the garbage collector?
Why a component architecture for the java platform?
How can I avoid validating a form before data is entered?
Can I have an action without a form?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
Can I map more than one table in a cmp?