Question :What is the difference b/w HashSet & LinkedHashSet? (JavaUtil)
Answer :Comment from Gyula, From the javadoc the LinkedHashSet differs from
HashSet in that it maintains a doubly-linked list running through all of its
entries. By this it preservs the order of elements when somebody iterates
over them (the elements will be retrieved in a predictable order - the order
of inserting).
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Friday, March 13, 2009
What is the difference b/w HashSet & LinkedHashSet (JavaUtil)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment