Java 8 pass method as parameter February 20, 2023 by Tarik It really does not matter; Runnable will do too. Consumer<Void>, Supplier<Void>, Function<Void, Void>