DXC Technology Interview Question

Q: Regarding java, difference between encapsulation and polymorphism