Code Pumpkin

Tag Archives: Interface


Interface vs Abstract class in Java

July 7, 2017
Posted by Pumpkin

The difference between interface and abstract class is one of the most asked interview questions for entry level java developer interviews. Even though both are used to achieve abstraction in java, there are significant differences between them. With support of default methods (introduced in Java8) and private methods (introduced in Java9) in interface, the gap between […]

Default Method In Interface | Java8

May 13, 2017
Posted by Pumpkin

In this article, we will discuss Default Method in interface which was introduced from Java8. This feature allows developer to add new methods to the interfaces without breaking the existing implementation of these interface. It provides flexibility to allow interface to define implementation which will will be used when concrete class does not provide an implementation […]

Private methods in Interface | Java 9

April 20, 2017
Posted by Pumpkin

In this article, we will see another JDK9 feature i.e. Private methods in Interface.  Everybody knows how humans have evolved from apes, but do you know how did interfaces evolve in Java?  Before reading about any Java 9 Features, it would be good if you can think about what are those possible reasons which encouraged Oracle […]

Java 9 Features

April 17, 2017
Posted by Pumpkin

Java 9 has been released on 21st Sept, 2017. In this article we will look into some of the most awaiting java 9 features with examples. You can download JDK 1.9 from here based on your OS Platform requirements. Some of the important java 9 features are: JShell: The Java Shell (Read-Eval-Print Loop) Convenience Factory Methods […]

Total Post : 80
Contribute Your Articles

Interview Experiences

Related Books

Like Us On Facebook

Alexa Page Rank