Oracle
1Z0-897 · Question #76
Given the class: Choose the annotation to add on line 4 to enable the client to receive a JSON representation of the instance of Value that is returned (Choose one):
The correct answer is A. @Produces("application/json"). See the full explanation below for the reasoning.
Question
Given the class:
Choose the annotation to add on line 4 to enable the client to receive a JSON representation of the instance of Value that is returned (Choose one):
Options
- A@Produces("application/json");
- B@Consumes("application/json");
- CNo annotation is needed, since JAX-RS supports marshalling and unmarshalling of JSON records.
- DNo annotation is possible, since JAX-RS does not support marshalling and unmarshalling of JSON records.
How the community answered
(51 responses)- A76% (39)
- B8% (4)
- C12% (6)
- D4% (2)
Community Discussion
No community discussion yet for this question.