Capgemini interview question

Technical: OOPS concepts core java SQL