Pergunta de entrevista da empresa Oracle

What is the need of Machine learning? Why cant we do it in Normal Java code?