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

Explain notify() method of object class ?

886


Difference between final and effectively final ?

866


What is meant by attribute?

808


Explain the difference between comparator and comparable in java?

713


What are triggers in DB? Explain their types. How do they work?

891


What do you mean by order of precedence and associativity?

753


Can you change array size in java?

757


Can we sort list in java?

808


What are constants and how to create constants in java?

779


What are latest features introduced with java 8?

842


What is the difference between length and size in java?

744


Is it possible for a yielded thread to get chance for its execution again?

750


How do you sort in ascending order in java?

705


How does sublist works in java?

764


Is java a digit method?

782