Java - AbstractionWhy can't you create an instance of an abstract class directly in Java?ABecause abstract classes are interfaces.BBecause abstract classes have private constructors.CBecause abstract classes may have incomplete methods without implementation.DBecause abstract classes are static.Check Answer
Step-by-Step SolutionSolution:Step 1: Understand abstract class purposeAbstract classes can have abstract methods without implementation, so they are incomplete.Step 2: Analyze instantiation rulesJava forbids creating objects of incomplete classes to avoid runtime errors.Final Answer:Because abstract classes may have incomplete methods without implementation. -> Option CQuick Check:Abstract class incomplete = no direct instance [OK]Quick Trick: Abstract classes are incomplete, so no direct objects allowed [OK]Common Mistakes:Confusing abstract classes with interfacesAssuming private constructors cause thisThinking abstract classes are static
Master "Abstraction" in Java9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Java Quizzes Classes and Objects - Object interaction - Quiz 1easy Constructors - Constructor overloading - Quiz 4medium Constructors - Parameterized constructor - Quiz 4medium Exception Handling - Finally block - Quiz 15hard Exception Handling - Why exception handling is required - Quiz 5medium Inheritance - Inheritance limitations - Quiz 10hard Inheritance - Parent and child classes - Quiz 5medium Object-Oriented Programming Concepts - Procedural vs OOP approach - Quiz 12easy Object-Oriented Programming Concepts - Why object-oriented programming is used - Quiz 15hard Polymorphism - Why polymorphism is needed - Quiz 9hard