Question d’entretien chez Oracle

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