Answer Posted / suresh
collections are the advanced concept to maintain dynamic data as objects. In real time some times we can't estimate the size of the data and type of the data.so it's better to maintain data as objects through collections.through arrays we can't manage the data because arrays are not auto-grow-able in size.
through collections we can use our required data structures directly. we have different classes for that. in each we have predefined methods to manipulate data in that collection.
Collections are performance wise slow. even though collections provide more features to maintain huge data easily.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Does sprintf add a null terminator?
Explain about main() method in java ?
Java.util.regex consists of which classes?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
What are the two ways of implementing multi-threading in java?
What is method and methodology?
What are "methods" and "fields"?
explain autoboxing in java?
What is the need of transient variables in Java ?
Why arraylist is used in java?
What do you mean by inner class in java? Explain
How many bits are in a sentence?
What is an interface in java?
what do you understand by synchronization? : Java thread
Why char array is preferred over string for storing password?