What is Polymorphism in Java?
2024
What is Polymorphism in Java?
- A.
The ability of a single method to perform different tasks.
- B.
The ability of different methods to perform different tasks.
- C.
The ability of a class to inherit properties of another class.
- D.
The ability of a single variable to hold multiple values.
- E.
Question not attempted
Attempted by 116 students.
Show answer & explanation
Correct answer: A
Polymorphism lets the same operation or method name show different behavior depending on the object, argument list, or runtime binding. Among the choices, this is best captured by a single method performing different tasks.