Deloitte interview question

OOP concept, difference in groovy and java.