Impetus Technologies interview question

Simple Java basic questions Oops, Hashmap, Puzzles