Hi buddy, well i got that there is always a default
constructor with abstract class. OK. But why not with interface?

Thanks in advance.

Answer Posted / harsha

Just a samll correction... Interfaces are part of
inheritance tree.
Inheritance is identified by both extends and implements
keywords.

Regarding the default constructor.. All the classes which
extend Object class will have a default constructor.

As we all know any interface cant extend Object class..
Interface cannot have default constructor.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What about abstract classes in java?

595


How many types of literals are there in JAVA?

580


What is use of a abstract variable?

523


What is byte data type?

535


Should database connections be singleton?

554






What is the locale class in java programming?

519


What is methodological theory?

516


Which class contains a method: cloneable or object?

524


Describe the syntax of multiple inheritance? When do we use such an inheritance?

572


What do you mean by scope of variable?

468


What is a vararg?

531


What are java methods?

560


What is the final keyword?

542


Explain the difference between an Interface and an Abstract class?

609


Can we write multiple catch blocks under single try block?

558