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
  • 783
  • 4
  • 10
  • 23

0 Answers0