Posts related to tag: Interface


Runnable vs. Callable Interface in Java

In Java, both Runnable and Callable are interfaces used to define tasks that can be executed by threads or executors. […] Continue reading »

Functional Interface in Java 8

Java 8 introduced a significant enhancement known as lambda expressions, which allowed for more concise and expressive code. Alongside lambda […] Continue reading »

Spring Boot CommandLineRunner Interface Example

Spring Boot’s CommandLineRunner interface, allows developers to execute code when the Spring Boot application starts. In this blog, we’ll explore […] Continue reading »

Java 8 Default and Static Methods in Interfaces

Java 8 brought a significant enhancement to interfaces by introducing default and static methods. These additions allowed developers to evolve […] Continue reading »

Java 8 Predicate vs Function: A Comparison with Examples

Java 8 introduced several new features to enhance the language’s functional programming capabilities. Among these features are Predicates and Functions, […] Continue reading »