Capgemini Interview Question

Related to java DB SQL, oops concepts