Synechron Interview Question

Writing a SERVLET code .. sudden and unexpected..!