DXC Technology interview question

Q: Regarding java, difference between encapsulation and polymorphism