I have application which runs on both `1.4` and `1.6`. Order of elements is getting printed in `1.6` version is different than `1.4`. I used `LinkedHashMap` which fixed the problem. Now this order is exactly same as of `1.4`. I didn't find `1.4` source code of `HashMap` except downloading entire jdk . Except generic whats been changed in newer versions?