Hi buddy, well i got that there is always a default
constructor with abstract class. OK. But why not with interface?
Thanks in advance.
Answers were Sorted based on User's Feedback
Answer / harsha
Just a samll correction... Interfaces are part of
Inheritance is identified by both extends and implements
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|
Answer / madhu
yes it is bcz interfaces are not part of the inheritance tree.
after all u can define a contract between 2 different parties
using interfaces nothing more u can expect. its not actually
an executable construct
|Is This Answer Correct ?||2 Yes||0 No|
Is java jre still free?
What is java util?
What is singleton class?
If a class is declared without any access modifiers, where can the class be accessed?
int a=10,b=20,c=30 a= b+c;b=a+c;c=a+b; System.out.println("The value is"+a+b+c;
What is difference between hashset and hashmap in java?
What is hash in java?
Can we make constructors static?
What are the 8 data types in java?
What is the difference between yielding and sleeping?
Can we declare a class as abstract without having any abstract method?
How does java enable high performance?