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 is the synonym of string?
Is empty string in java?
What is an eror in java?
What does serializing data mean?
What is the major difference between linkedlist and arraylist?
List some important characteristics on jre
What do you understand by casting in java language?
What is the reason behind using constructors and destructors?
What is the difference between variable & constant?
Differentiate between the constructors and methods in java?
What is off heap memory?
how to split string in java?
What is the difference between length and length () in java?
how to create daemon thread in java?
If a variable is declared as private, where may the variable be accessed?