Capgemini interview question

Related to java DB SQL, oops concepts