Difference between array and arraylist.
Answer Posted / chinnu
Array:arrays is not for our requirement once we create a size next we cant change the size.in advance we cant estimate the size.its taking only homogeneous elements.
Array list:array list is same as collections and vectors.array list is or requirement we can change the size in advance also and estimate the size.its taking both homogeneous and heterogeneous elements .
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Why do we create public static method in java?
What is the current version of java?
Is void a keyword in java?
What is natural ordering in java?
What is difference between array and arraylist in java?
What language is pass by reference?
How would you convert bytes to string?
Can a method be static?
What is final keyword in java?
What is Java Shutdown Hook?
What is multi-catch block in java?
Which java version is latest?
What are alternatives to java serialization?
Is null an object java?
Can I learn java without any programming experience?