Very basic question of OOPS. Messed some answer here also. Though question like how to sort hashmap based on value field. How to make validation if request parameter 1 is there then to make request param 2 to be mandatory (AOP concept) Never expected this much difficult question from MNC.