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 an isolation level?
What are the diff types of exception?
Is infobus easy to use?
What is abstract schema?
Why does the option tag render selected=selected instead of just selected?
What is the relationship between an event-listener interface and an event-adapter class?
What are various types of class loaders used by jvm?
What is aop(assepct oriented programing)?
If your ui seems to freeze periodically, what might be a likely reason?
Name the class that is used to bind the server object with RMI Registry?
How to pass parameters in RMI?
Can I map more than one table in a cmp?
What is the purpose of the notifyall() method?
why static class in java
What is difference between object state and behavior?