Impetus Technologies interview question

Questions related to Java patterns