Important Java Mcq 1

What is the biggest reason for the use of polymorphism?

a) It allows the programmer to think at a more abstract level

b) There is less program code to write

c) The program will have a more elegant design and will be easier to maintain and update

d) Program code takes up less space

Answer:

c) The program will have a more elegant design and will be easier to maintain and update

Explanation:

We can define polymorphism as the ability of a message to be displayed in more than one form. A real-life example of polymorphism is a person who at the same time can have different characteristics. Polymorphism allows for the implementation of elegant software.

Related MCQs

The java compiler generates

a machine code b. byte code c. source code d. HTML Answer: b. byte code Explanation: The Java compiler generates byte code which is then

Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?