Tech Mahindra interview question

Oops concepts, SQL query, basics of language (Java)