A. You can always pass an instance of a subclass to a parameter of its superclass type. This feature is known as polymorphism. B. The compiler finds a matching method according to parameter type, number of parameters, and order of the parameters at compilation time. C. A method may be implemented in several subclasses. The Java Virtual Machine dynamically binds the implementation of the method at runtime. D. Dynamic binding can apply to static methods. E. Dynamic binding can apply to instance methods.

Which of the following statements are true?


A. You can always pass an instance of a subclass to a parameter of its superclass type. This feature is known as polymorphism.
B. The compiler finds a matching method according to parameter type, number of parameters, and order of the parameters at compilation time.
C. A method may be implemented in several subclasses. The Java Virtual Machine dynamically binds the implementation of the method at runtime.
D. Dynamic binding can apply to static methods.
E. Dynamic binding can apply to instance methods.

The correct answer is ABCE


Java

Learn More Multiple Choice Question :