All the references and Sun Java docs state that HasMap() is unsorted. But when in my following code, HashMap() comes out sorted on keys automatically..
now lets say my resultset was like "(1, john), (3,paul) (2, robert)".. but 'studentsList' was in following format "(1, john),(2, robert), (3,paul) ". i.e. when I am putting records into HasMap it is sorting automatically.... Is this normal behavior of HashMaps? Are there any other collections/maps I can use to get around this?