Choose the option that describes what would happen if this class were deployed (Choose one):

Given the class:

Choose the option that describes what would happen if this class were deployed (Choose one):

Given the class:

Choose the option that describes what would happen if this class were deployed (Choose one):

A.
Any HTTP GET or POST request with the URL “/resource” would result in a call to getName().

B.
Any HTTP GET or POST request with URLs that begin with “/resource” would result in a call to getName().

C.
A runtime error would result, since a method cannot be responsible for both GET and POST requests.

D.
A compile error would result, since a method cannot be responsible for both GET and POST requests.



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Mez

Mez

A is false. @Get and @post cannot be in the same methode. the give you a compile error.

Ramy

Ramy

@Mez.

No both can come together.
If it give compilation error with you , it seems vendor implementation issue.
But JAX-RS allow this.

Aneesh

Aneesh

C

Mohamed Fayek Saber

Mohamed Fayek Saber

A is correct

coco

coco

como es posible que A sea correcta? mr Mohamed