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
Mention a package that is used for linked list class in java.
Can the garbage collection be forced by any means?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
Explain about arraylist?
What is purpose of applet programming?
Why is stringbuffer thread safe?
What is temp in java?
What does nullpointerexception mean?
What is difference between equals and hashcode method?
Is .net better than java?
how we can make a write-only class in java?
What invokes a thread's run() method in java programming?
Give a practical example of singleton class usage?
What is object-oriented programming?
What is the exact difference in between Unicast and Multicast object? Where will it be used?