In Java, we can make a class abstract by

2008

In Java, we can make a class abstract by

  1. A.

    Declaring it abstract using the

    abstract
    keyword.

  2. B.

    Making at least one method

    final
    .

  3. C.

    Declaring all methods as

    static
    .

  4. D.

    Declaring at least one method as

    abstract
    .

Attempted by 160 students.

Show answer & explanation

Correct answer: A

To declare a class as abstract in Java, you must use the 'abstract' keyword before the class declaration. For example: public abstract class ClassName { }.

Explore the full course: Isro