I think, in your case, it happens to be same. Because, When you iterate through a HashSet, the order is unpredictable, while a LinkedHashSet lets you iterate through the elements in the order in which they were inserted. Have look on the below code.
The output: [BCD, ABC, CDFG].
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|