Which of the following statements is false?

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 compile 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.


d. Dynamic binding can apply to static methods.
Dynamic binding is applied to instance methods, not static methods. Static methods are bound in the compile time.

Computer Science & Information Technology

You might also like to view...

Which of the following is not a benefit of “goto-less programming”?

a. Easier to debug and modify b. Shorter c. Clearer d. More likely to be bug free

Computer Science & Information Technology

The __________ method immediately terminates the program.

a. System.terminate(0); b. System.halt(0); c. System.exit(0); d. System.quit(0); e. System.stop(0);

Computer Science & Information Technology

A ________ is a collection of formats that include coordinating colors, fonts, and special effects to provide a stylish appearance

Fill in the blank(s) with correct word

Computer Science & Information Technology

The value of a literal string passed as an argument to the alert() method is displayed in the ____.

A. pop-up dialog box B. Web browser C. error log D. Windows system monitor

Computer Science & Information Technology