Can a class extend abstract class or interface? why

Answer Posted / ramakrishna

Yes, A class can extend an abstract class also any
interface,why because,A normal class which is implementing
an interface can still be declared as any abstract,if u
extend that class what happens?
u r extending an abstract class and indirectly extending
interface also.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does a function need a return?

748


What is == mean?

758


What is bool mean?

752


What is the difference between checked exception and unchecked exception?

792


What is the disadvantage of synchronization?

778


What is var keyword ?

927


What is the difference between choice and list?

843


Differentiate between static and non-static methods in java.

809


What is predicate in java?

815


What are the types of methods in java?

789


What is a instance variable in java?

791


Discuss about garbage collector in Java.

865


What is try-with-resources in java?

861


What is the purpose of the main method?

756


What are "class access modifiers" in Java?

829