where exactly collections are usefull in realtime

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is synchronization and why is it important in java programming?

469


What is the difference between Java1.4 and Java1.5

1823


Can we pass null as argument in java?

502


What is a private class in java?

504


What is the difference between preemptive scheduling and time slicing in java programming?

528






Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

676


What is complexity and its types?

520


How do you implement tree mirroring in java?

583


What invokes a thread's run() method in java programming?

561


What is the public method modifier?

538


What is private public protected in java?

568


How to display all the prime numbers between 1 and n (n is the number, get the input from user)

508


What is difference between hashset and hashmap in java?

460


What is the purpose of final keyword and when to use it?

521


Is null or empty java?

529