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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is nan in java?

510


What is the common usage of serialization?

566


Can we have a try block without catch block?

560


Which programming language is best in future?

515


What is synchronization and why is it important in java programming?

465






What is defined as false sharing in the context of multithreading?

498


What is continuity of a function?

515


How do you remove duplicates in java?

514


What are advantages of using Java?s layout managers than windowing systems?

1849


Is integer passed by reference in java?

558


What do you mean by platform independence of Java?

527


What are implicit objects in java?

541


What are accessor methods in java?

546


What is a static method in java?

530


What is an empty string in css?

518