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 are the oops concept?
What is the relationship between the canvas class and the graphics class?
When a thread blocks on i/o, what state does it enter?
Is the session factory thread safe?
what are getters and setters in Java with examples?
Why do threads block on i/o?
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
how to use debug in my elipse to solve problems that exist in my project
What is the difference between the session.update() method and the session.lock() method?
Is it possible to stop the execution of a method before completion in a sessionbean?
Describe, in general, how java's garbage collector works?
Why is string immutable in java?
What is the argument type of a programs main() method?
How primary key is implemented in Oracle?
what is handle?