Pergunta de entrevista da empresa Cisco

Explain the scenario where we use scripting instead of Java programming and advantages?