GlobalLogic interview question

Java is applicable for real world entities? Explain this with any example.