Important Java Mcq 1

Which one of the following is not true?

a. A class containing abstract methods is called an abstract class.

b. Abstract methods should be implemented in the derived class.

c. An abstract class cannot have non-abstract methods.

d. A class must be qualified as ‘abstract’ class, if it contains one abstract method.

Answer:

c. An abstract class cannot have non-abstract methods

Explanation:

An abstract class can contain both abstract and non-abstract methods. So, option c is not true and remaining all options are true.

Related MCQs

Which statement is true for the class First given below?

 package myPackage:                       class First                     {                     /* class body */                    } a. first class is accessible to all classes defined inside or outside my package. b. first

Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?