Java, Lambda Expressions, Functional Programming, Programming, Software Development.
R>: Accepts an argument of type T and returns a result of type R. Often used for transforming data. Function<String, Integer> stringLengthFunction = String::length; Consumer<T>: Accepts an argument of type T and returns no result (void). Typically used for performing actions on objects.