What is polymorphism in Java?
Polymorphism is the ability of an object to take on multiple forms. It allows objects of different classes to be treated as objects of the same class, for example through method overloading or method overriding.