if i know the lenght of collection in hand, should I use Array or Arraylist? justify
Answer / 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 |
Can I import same package/class twice? Will the jvm load the package twice at runtime?
Is a class a subclass of itself?
What is the relationship between an event-listener interface and an event-adapter class?
How to pass parameters in RMI?
How to implement RMI in Java?
why we use main in java?
How to deploy Jar, War files in J2EE?
What is the need of serialize?
How two threads will communicate with each other?
how java is os independent language ?
Explain Object Serialization and it can be used?
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?