Which of the following is NOT a correct way to bind with the parameter named "name" in HTTP request? Assume @GetMapping is given

(value = "/login") public ClassName method1(@RequestParam(value="customername") String name, @RequestParam String password) throws Exception { //rest of the code }

(value = "/login") public ClassName method1(@RequestParam(name="customername") String name, @RequestParam String password) throws Exception { //rest of the code }

(value = "/login") public ClassName method1(@RequestParam("customername") String name, @RequestParam String password) throws Exception { //rest of the code } 

(value = "/login") public ClassName method1(@RequestParam(customername) String name, @RequestParam String password) throws Exception { //rest of the code }

Correct Option - d

To get all Infosys Certified Cloud Native 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