Pregunta de entrevista de Oracle

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