Tech Mahindra interview question

Only based on SQL, OOPS concept and JAVA