@FunctionalInterface
public interface operacao {
int executar(int a, int b);
}
```public class principal {
public static void main(String[] args) {
try {
operacao divisao = (a, b) -> a / b;
System.out.println(divisao.executar(10, 2));
} catch (ArithmeticException e) {
System.out.println("Erro ao dividir por zero");
}
}
}