News

When designing applications, it is important to know when to use an abstract class and when to use an interface. Although abstract classes and interfaces seem similar in some ways, there are key ...
While Designing applicaiton we need to design carefully. Basically, Interface is used in most of the cases where we need to use contract. Contract will have list of method signatures only and we will ...
Implementation is done similarly in Java. For example, using the keyword implements will make a Java interface, while the keyword extends makes an abstract class. Encapsulation in object-oriented ...
Interface can have public method only it it. Abstract can attend only on class at a time. Abstract class can extend from both abstact class and class. A class can extend only one abstract class.
Methods in interface are by default abstract and public, java 8 can have body to the methods. Abstract class can have both abstract and non-abstract methods. To be used needs to use extends keyword.