nerdexam
Broadcom-VMware

2V0-72.22PSE · Question #38

Which two statements are true regarding the RestTemplate class? (Choose two.)

The correct answer is B. It automatically supports sending and receiving Java objects. C. It provides convenience methods for writing REST clients. RestTemplate supports sending custom headers using exchange method with HttpEntity object.

REST

Question

Which two statements are true regarding the RestTemplate class? (Choose two.)

Options

  • AIt supports asynchronous non-blocking model.
  • BIt automatically supports sending and receiving Java objects.
  • CIt provides convenience methods for writing REST clients.
  • DIt provides convenience methods for writing REST services.
  • ESending an HTTP request with a custom header is not possible when using RestTemplate.

How the community answered

(50 responses)
  • A
    8% (4)
  • B
    74% (37)
  • D
    14% (7)
  • E
    4% (2)

Explanation

RestTemplate supports sending custom headers using exchange method with HttpEntity object.

Topics

#RestTemplate#REST clients#HTTP requests#message converters

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22PSE Practice