Infosys interview question

mostly on java oops , generics , exception handelling, spring , hibernate