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 a JAR file?

590


Can a method be overloaded based on different return type but same argument type?

546


What is the use of optional ?

562


Name and explain the types of ways which are used to pass arguments in any function in java.

564


What do you understand by an io stream?

581






How does compareto work in java?

570


How to sort double array in java?

585


What is a programming object?

554


What is primitive data type in java?

537


How java uses the string and stringbuffer classes?

513


What is assembly language?

548


Can we print null in java?

569


Can sleep() method causes another thread to sleep?

562


What is a vararg?

548


Can string be considered as a keyword?

566