where exactly collections are usefull in realtime

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


Please Help Members By Posting Answers For Below Questions

What is variable and rules of variable?

512


How many bytes is double?

545


Name few java util classes introduced with java 8 ?

498


Explain spliterator in java8?

597


Explain the scope or life time of class variables or static variables?

514






What are the ways to instantiate the class class?

595


there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.

1571


Why is method overloading not possible by changing the return type in java?

585


How to find the given number is a prime number or not by getting input from the user

546


What is final variable?

495


Explain about varargs in java?

580


What is java lang object?

527


What are the important features of Java 8 release?

571


What is procedure overloading?

1796


Why java is not 100% object-oriented?

826