0
AccountService accountServiceLambda = () -> {
    Account account = new Account();
    accountService.save(account); 
} 

In the above lambda expression, how can I declare throws AccountServiceException like below ?

public void createAccount() throws AccountServiceException {
     Account account = new Account();
     accountService.save(account);
}
Prasad Revanaki
  • 733
  • 4
  • 10
  • 21

0 Answers0