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
Is c better than java?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What is the difference between compare and compareto in java?
What are the features of junit?
What does string mean in java?
How do you test a method for an exception using junit?
What interface is extended by awt event listeners?
What happens when main () method is declared as private?
What if constructor is protected in java?
Does chrome use java?
What is canonical name in java?
Which number is denoted by leading zero in java?
Why string is immutable with example?
How does class forname work in java?
What is nextline method in java?