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
Can I have an action without a form?
How would you create a button with rounded edges?
What is JTS?
What are the different types of exception?
What is the immediate superclass of the applet class?
What do you need to set-up a cluster with jboss?
A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions
Where we can write Rmi registry in the code, without having to write it at the command prompt?
which type of objects reference will be given to client?
What is Stream Tokenizer?
What is the difference between a menuitem and a checkboxmenuitem?
Why use POJO when I can use hashmap
What restrictions are placed on the values of each case of a switch statement?
What state does a thread enter when it terminates its processing?
Is “abc” a primitive value?