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
Write java program to reverse string without using api?
Why is java logo a cup of coffee?
What is considered an anti pattern?
Is java a digit method?
Why stringbuffer is faster than string?
What is the purpose of an interface?
How do you override a variable in java?
Explain about the select method with an example?
How does a for loop work?
What all access modifiers are allowed for top class ?
How can you write a loop indefinitely in java programming?
What are the basics of core java?
What are the advantages and disadvantages of reference counting in garbage collection?
What about interrupt() method of thread class ?
What is the difference between access specifiers and access modifiers in java? 16