Entransys interview question

Q1: Basic questions on java Q2: Pattern programs?