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 use of set in java?
how is final different from finally and finalize in java?
What is regex java?
how to deploy tomcatserver to weblogic server? write d following steps?
What is a numeric format?
What is type inference in java8?
Explain all java features with real time examples
What are the types of inner classes (non-static nested class) used in java?
Can we override private methods?
What classes of exceptions may be caught by a catch clause in java programming?
Explain importance of finally block in java?
What a static class can contains?
Why we use set in java?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What is boolean query?