Which of the following correctly describes polymorphism in Java?
-
A
A class can extend multiple classes
-
B
A reference type can behave differently depending on the actual object it points to at runtime
-
C
A method can return different types in different invocations
-
D
A field can hold multiple values simultaneously