Bird
0
0

Which of the following is true about abstract classes in Java?

easy📝 Conceptual Q1 of 15
Java - Abstraction
Which of the following is true about abstract classes in Java?
AAbstract classes cannot be instantiated directly.
BAbstract classes must have only abstract methods.
CAbstract classes are always final.
DAbstract classes do not support constructors.
Step-by-Step Solution
Solution:
  1. Step 1: Understand instantiation rules for abstract classes

    Abstract classes cannot create objects directly because they are incomplete by design.
  2. Step 2: Check other options for correctness

    Abstract classes can have concrete methods and constructors, and they cannot be final because they are meant to be extended.
  3. Final Answer:

    Abstract classes cannot be instantiated directly. -> Option A
  4. Quick Check:

    Abstract class instantiation = Not allowed [OK]
Quick Trick: Abstract classes cannot create objects directly [OK]
Common Mistakes:
  • Thinking abstract classes can be instantiated
  • Believing abstract classes must have only abstract methods
  • Assuming abstract classes cannot have constructors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Java Quizzes