Difference between array and arraylist.
Answer Posted / vinod agarwal
Array:array is the one which can save similar data typed
elements.
And the size is limited.
Arraylist:it is also a type of array in which we can extend
size
dynamically.
syntax:
ArrayList ar=new ArrayList();
where ArrayList is a class
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is bool mean?
What is multiple inheritance? Is it supported by java?
Which types of exceptions are caught at compile time?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
What is the difference between a checked and an unchecked exception?
Difference between arraylist and hashset in java?
What is mnemonic in assembly language?
What is the purpose of abstract class?
Explain notifyall() method of object class ?
What is the use of flag?
What does void * mean?
Explain the significance of class loaders in bootstrap?
Explain public static void main(string args[]).
What is the difference between multitasking and multithreading in Java
What restrictions are placed on method overloading?