Pergunta de entrevista da empresa Tech Mahindra

why do we have jar,war,ear why not one file structure?