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
Difference between error and exception
What is the best definition for data?
What is the role of garbage collector in java?
When is the finally clause of a try-catch-finally statement executed?
What is a generic type?
Can there be an abstract method without an abstract class?
What is tree in java?
How does compareto method work?
What are the object and class classes used for?
How does thread synchronization occurs inside a monitor?
Are arrays dynamic in java?
How many bytes is a string java?
what do you mean by classloader?
Can we nested try statements in java?
Explain Basics of OOP Language in java