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
What does it mean that a method or field is “static”?
What is the final class?
Explain an algorithm to find depth of a binary tree.
What are the different types of data structures in java?
How does split work in java?
What is the difference between a checked and an unchecked exception?
Tell me about different OOPS concepts.
What are the parts of a method?
What does nullpointerexception mean?
Define a package.
What is difference between pointer and reference?
What is a dot notation?
What do you mean by stream pipelining in java 8?
What do you understand by classes in java?
What is the difference between pass by reference and pass by pointer?