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 is public static void main?

801


Why is singleton instance static?

740


What happens if we don’t override run method ?

771


What is application tier?

790


How does arraylist work in java?

789


What is bytecode in java ?

854


Explain what access modifiers can be used for variables?

817


What is the class in java?

767


What are streams in java 8?

772


What is exception handling in java?

804


When do we use hashset over treeset?

771


What are the 6 functions?

729


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

790


What is the base class of all exception classes in java?

805


What is entry set in java?

746