What is polymorphism in Java?
A. Polymorphism is the ability of an object to take on many forms.
B. Polymorphism is the ability of a method to be implemented in different ways by different classes.
C. Polymorphism is the ability of a variable to store different types of data.
D. None of the above.
Answer:B
What is polymorphism in Java?
A. Polymorphism is the ability of an object to take on many forms. B. Polymorphism is the ability of a method to be implemented in different ways by different classes. C. Polymorphism is the ability of a variable to store different types of data. D. None of the above.