Which two statements are true regarding the RestTemplate class? (Choose two.)
A . It supports asynchronous non-blocking model.
B . It automatically supports sending and receiving Java objects.
C . It provides convenience methods for writing REST clients.
D . It provides convenience methods for writing REST services.
E . Sending an HTTP request with a custom header is not possible when using RestTemplate.
Answer: BC
Explanation:
The RestTemplate class is a Spring class that provides an easy way to communicate with RESTful web services from within an application. It offers several convenience methods for performing HTTP requests and handling HTTP responses, such as getForObject(), postForEntity(), exchange(), etc. It also supports automatic conversion of Java objects to and from JSON or XML using HttpMessageConverter instances.
Reference: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/client/ RestTemplate.html
Latest 2V0-72.22 Dumps Valid Version with 60 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund