News

For an introduction to Java interfaces, including the difference between classes and interfaces, see my Java 101 tutorial Working with interfaces in Java. Nesting interfaces in classes ...
The difference between abstract classes and interfaces has long vexed Java developers. Find out how Java 8's default methods introduce both new complexity and new options to that familiar ...
Applying the open-closed principle in Java The addition of an interface to our example helps to overcome the violation of the open-closed principle. An interface allows for infinite future extensions ...