Java - AbstractionWhat is true about an abstract method in Java?AIt has no body and must be implemented by subclasses.BIt can be called directly without an object.CIt must have a body in the abstract class.DIt cannot be overridden by subclasses.Check Answer
Step-by-Step SolutionSolution:Step 1: Understand abstract method definitionAn abstract method is declared without a body and forces subclasses to provide implementation.Step 2: Analyze optionsOnly It has no body and must be implemented by subclasses. correctly states that abstract methods have no body and must be implemented by subclasses.Final Answer:It has no body and must be implemented by subclasses. -> Option AQuick Check:Abstract method = no body, must implement [OK]Quick Trick: Abstract methods have no body and require subclass implementation [OK]Common Mistakes:Thinking abstract methods can have a bodyAssuming abstract methods can be called directlyBelieving subclasses cannot override abstract methods
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