Which collection object is faster to retrieving the data and
inserting the data into it.

Answer Posted / nav dev

ArrayList is faster to retrieving

Set is faster to inserting

Is This Answer Correct ?    21 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if constructor is private?

813


What is a java lambda expression?

805


Difference between a class and an object?

789


What are methods and how are they defined?

903


Why does my function print none?

734


How to perform bubble sort in java?

805


What are the advantages of java over C++?

950


Why declare Main() inside the class in java ?

824


When we should use serialization?

813


Is math class static in java?

863


Describe the term diamond problem.

799


What differences exist between iterator and listiterator?

843


What is linked hashmap and its features?

799


Why use string handling in Java?

816


How many types of literals are there in JAVA?

815