Tech Mahindra interview question

java basics questions oops concepts