Question d’entretien chez Infosys

To write snippets code of java based on the scenario