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
How do you escape a string?
What is instance example?
Is main an identifier?
What is set in java?
How many types of methods are there in java?
What is preparedstatement in java?
what is synchronization and why is it important? : Java thread
Explain the difference between static and dynamic binding in java?
How we can execute any code even before main method?
What is ascii code?
Is array passed by reference in java?
What is java dot?
What are the advantages of inner classes?
What is the final keyword?
What is an 8 bit word?