Email address:
Password:
SCJP/OCPJP 1.6 certification
Practice Exams and Training
SCJP Online Training » Discussions

Collection speed

Q#19 Final exam

Here I think The Iteration speed of HashSet should be faster than LinkedHashSet. but Insertion Deletion speed may be different.

If above is false then why ArrayList has faster ITERATION speed than LinkedList.

Reference:


Please Give me a chart or something that defines diffrence between speeds of all Collection in terms of Both Insertion Deletion speed and Iteration Speed.

LinkedHashSet has a faster iteration speed compared to the HashSet due to the way it links its nodes.


In case of ArrayList and LinkedList, ArrayList maintains a faster iteration speed due to the way it keeps unique references to its elements.


I noticed that your tutoring service is expired on 12/24/16. If you wish to have my help on technical questions like this, can you please renew the tutoring service on your account?

ExamLab © 2008 - 2024