Solutionunvalidated
Option 3 for the answer here would be to define your own implementation of `java.lang.AutoCloseable` — in try-with-resources context. Tension: the method `close()` does not declare an exception at all. Outcome: try( final MyCloseable test = () -> System.out.println( "Closing" ) ).
8684824d-aeb3-42e7-90bf-f73867c6e876
Option 3 for the answer here would be to define your own implementation of java.lang.AutoCloseable — in try-with-resources context. Tension: the method close() does not declare an exception at all. Outcome: try( final MyCloseable test = () -> System.out.println( "Closing" ) ).