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
Explain about collection interface in java?
What is private public protected in java?
What is the difference between hashmap and hashtable in java?
Describe what happens when an object is created in java ?
How can an exception be thrown manually by a programmer?
Which sort is best in java?
Why java is said to be pass-by-value ?
Explain about the main() method in java?
What are different type of exceptions in java?
How to solve the problem of generating the unique hash keys with hash function?
What is bytecode in java ?
What is the meaning of I ++ in java?
What are format specifiers in java?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What is the maximum length of a url?