Capgemini interview question

basic java spring and hibernate ques