Java - AbstractionWhat does partial abstraction mean in Java?AAn abstract class can have both abstract and concrete methods.BAn abstract class can only have abstract methods.CAn abstract class can be instantiated directly.DAll methods in an abstract class must be static.Check Answer
Step-by-Step SolutionSolution:Step 1: Understand abstract class capabilitiesPartial abstraction means an abstract class can have some methods with implementation (concrete) and some without (abstract).Step 2: Compare options with definitionOnly An abstract class can have both abstract and concrete methods. correctly states this; others are incorrect or false statements.Final Answer:An abstract class can have both abstract and concrete methods. -> Option AQuick Check:Partial abstraction = abstract + concrete methods [OK]Quick Trick: Abstract class can mix method types, not only abstract [OK]Common Mistakes:Thinking abstract classes must have only abstract methodsBelieving abstract classes can be instantiatedConfusing static methods with abstract methods
Master "Abstraction" in Java9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Java Quizzes Classes and Objects - Instance variables - Quiz 11easy Constructors - Parameterized constructor - Quiz 11easy Custom Exceptions - Throwing custom exceptions - Quiz 10hard Custom Exceptions - Best practices - Quiz 15hard Custom Exceptions - Best practices - Quiz 12easy Encapsulation - Data hiding - Quiz 14medium Inheritance - Super keyword - Quiz 12easy Interfaces - Interface declaration - Quiz 11easy Object-Oriented Programming Concepts - Classes and objects - Quiz 8hard Polymorphism - Compile-time polymorphism - Quiz 9hard