Can an abstract class be final?

Answer Posted / ranganathkini

No a class cannot be marked "abstract" as well as "final".
Marking a class "abstract" means it contains partial
implementation of methods and hence depends on its
subclasses to provide concrete implementation.

Marking the class "final" means that no other class can
extend it and hence abstract classes cannot be marked final.

Is This Answer Correct ?    173 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the access scope of protected access specifier?

539


Explain serialization and deserialization in java?

555


What does it mean to be immutable?

552


When should I use singleton pattern?

545


What is the purpose of encapsulation?

541






What does regex mean?

571


How do I find and replace in word?

533


How to implement a multithreaded applet?

2204


Explain an intermediate language?

509


What are the methods of object class ?

563


What are the different types of constructor?

526


Why object class is super class for every class in java?

576


Explain the access modifiers for a class, method and variables?

662


What is hash code collision?

593


What is canonical name in java?

623