Which of the below exception handler methods are correct? [Choose any three]

@ExceptionHandler(Exception.class)
public ResponseEntity<String> exceptionHandler(Exception e) {

//statements  
}

@ExceptionHandler(Exception.class)
public ResponseEntity<String> exceptionHandler() {

//statements  
}

@ExceptionHandler()
public ResponseEntity<String> exceptionHandler(Exception e) {

//statements  
}

@ExceptionHandler
public ResponseEntity<String> exceptionHandler(Exception e) {

//statements  
}

Correct Option - acd

To get all Infosys Certified Spring Microservices Developer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in