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 is variable and rules of variable?
How many bytes is double?
Name few java util classes introduced with java 8 ?
Explain spliterator in java8?
Explain the scope or life time of class variables or static variables?
What are the ways to instantiate the class class?
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.
Why is method overloading not possible by changing the return type in java?
How to find the given number is a prime number or not by getting input from the user
What is final variable?
Explain about varargs in java?
What is java lang object?
What are the important features of Java 8 release?
What is procedure overloading?
Why java is not 100% object-oriented?