Tech Mahindra interview question

usual java/j2ee question