Interface Executable

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Executable
An class for executing code while allowing throwing checked exceptions. It is therefore similar to Runnable, but allows checked exceptions to be thrown in the execution block.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Executes some logic, or throws an exception if unable to do so.
  • Method Details

    • execute

      void execute() throws Exception
      Executes some logic, or throws an exception if unable to do so.
      Throws:
      Exception - If there is an issue while executing.