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
What is difference between object state and behavior?
What is meant by method chaining?
What is in-memory replication?
Explain about local interfaces.
What class is the top of the awt event hierarchy?
Can you control when passivation occurs?
What is the highest-level event class of the event-delegation model?
Can I have an action without a form?
What is an abstract method?
Is infobus easy to use?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
What is the form of storage space in java?
What restrictions are placed on the values of each case of a switch statement?
What is table mutation and how do you avoid it?
What are the benefits of detached objects?