where exactly collections are usefull in realtime

Answers were Sorted based on User's Feedback



where exactly collections are usefull in realtime..

Answer / kumar

Collections are usefull in those situations where you doesn't know how much data you have to handled, that means size of data not defined. Like there are so many scenario when data dynamically comes from UI or application ( no fixed size defined) then you must use collections to manage and perform diff operations.

Is This Answer Correct ?    13 Yes 1 No

where exactly collections are usefull in realtime..

Answer / 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

More Core Java Interview Questions

Java.util.regex consists of which classes?

0 Answers  


Difference between overriding and overloading in java?

0 Answers  


What does it mean that a method or field is “static”?

0 Answers  


In which way does a Primitive data type is passed ?

5 Answers   Sun Microsystems,


What are the uses of java?

0 Answers  






Explain purpose of sleep() method in java?

0 Answers  


Why packages are used?

0 Answers  


How to eliminate duplicates from an array?

6 Answers   ABC, AdMod, Adobe, College School Exams Tests, Patni, Wipro,


Explain about field hiding in java?

0 Answers  


What are the changes in java.io in java 8 ?

0 Answers  


What is the new line character?

0 Answers  


Hi friends i want display Triangle shap stars(*) please can tell me any one java code logic? * *** ***** ******* Like this

2 Answers   NIIT, TCS,


Categories