Domanda di colloquio di Oracle

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