Organizational Research By

Surprising Reserch Topic

Question:Change HashSet for LinkedHashSet:


Hash table and linked list implementation of the Set interface, with predictable iteration order.
Also, remember to always program to an interface:
public static void deleteDuplicates(List list){
    List newList = new ArrayList();
    Set set = new LinkedHashSet();
    //rest of your code

asked Sep 13, 2013 in Java Interview Questions by rajesh
edited Sep 12, 2013
0 votes

Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.