Q58.webp
N

Q58.webp

  • Media owner Nobara81
  • Ngày thêm
Kizspy | Question: 58
(Choose 1 answer)
Which of the following is a correct way to create an instance of a Retrofit API interface?
A. Retrofit retrofit = new Retrofit(); MyApiEndpointInterface api = retrofit.create(MyApiEndpointInterface.class);
B. Retrofit retrofit Retrofit.create(); MyApiEndpointInterface api =
retrofit.newInstance(MyApiEndpointInterface.class);
C. Retrofit retrofit = new
Retrofit.Builder().baseUrl(BASE_URL).addConverterFactory(GsonConverterFactory.create()).build();
MyApiEndpointInterface api = retrofit.create(MyApiEndpointInterface.class);
D. Retrofit retrofit = Retrofit.newInstance(BASE_URL); MyApiEndpointInterface api =
retrofit.createInstance(MyApiEndpointInterface.class);
  • Like
Reactions: Quangdung

Thông tin

Category
PRM392
Thêm bởi
Nobara81
Ngày thêm
Lượt xem
4,208
Lượt bình luận
17
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom