Software Development

Java 8 – Redeclare default methods

In Java, you can extend from another interface using the extends keyword. But Java 8 has default methods. What happens if we extend another interface that has the same default methods as our interface?

It gets re-declared in the “child” interface.

Software Development

Create Your Own Functional Interface in Java 8

What is a Functional Interface? [wp_ad_camp_1] Java 8 offers Lambda expressions to help us write better, and concise codes. Lambda expressions revolve around Functional Interfaces. So, what are Functional Interfaces? The simplest definition is: Functional Interfaces are Java Interfaces with