RafterOne Interview Question

Oops concept in java,basics of sql.