Tech Mahindra interview question

Basic java arrays oops multithreading