Introduction to BinaryOperator Functional Interface
Interface Name Description Abstract Method BinaryOperator<T> Accepts two (reference type) input argument of same type and returns a result of …
Interface Name Description Abstract Method BinaryOperator<T> Accepts two (reference type) input argument of same type and returns a result of …
Interface Name Description Abstract Method Function<T, R> Accepts one argument and produces a result. R apply(T t) DoubleFunction<R> Accepts a …
Interface Name Description Abstract Method Consumer<T> Accepts a single (reference type) input argument and returns no result void accept(T t) …
Interface Name Description Abstract Method Supplier<T> A supplier of a result (reference type) T get() DoubleSupplier A supplier of double …
Interface Name Description Abstract Method Predicate<T> Accepts one arguments (reference type) boolean test(T t) DoublePredicate Accepts double value arguments boolean …
Using Object Oriented Programming approach Using Lambda Expression
Java is a object oriented programming language where objects and classes are the main entities. If we create a function, …
Floyd’s Cycle Finding Algorithm https://leetcode.com/problems/linked-list-cycle/description/ Given head, the head of a linked list, determine if the linked list has a cycle …
SOAP: XML-based for enterprise application RESTful: resource-based for web servers GraphQL: Query Language reduces network load gRPC: High performance for …
A distributed cache is like a shared memory storage spread across multiple computers in a network. It helps speed up …