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
What about abstract classes in java?
How many types of literals are there in JAVA?
What is use of a abstract variable?
What is byte data type?
Should database connections be singleton?
What is the locale class in java programming?
What is methodological theory?
Which class contains a method: cloneable or object?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
What do you mean by scope of variable?
What is a vararg?
What are java methods?
What is the final keyword?
Explain the difference between an Interface and an Abstract class?
Can we write multiple catch blocks under single try block?