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 create a sop?
what r advatages of websphere? & how to deploy?
What is the difference between delete and delete[]
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
What is function and its uses?
State some situations where exceptions may arise in java?
What are the 3 types of control structures?
Difference between character constant and string constant in java ?
What is foreach loop in java?
What is java full form?
How do I get the | symbol on my keyboard?
Why is the type for real numbers called double?
Does substring create a new object?
What does next mean in java?
Which class should you use to obtain design information about an object in java programming?