PRM392_-_SP_2025_-_FE_3553.webp
Natsu_lovely

PRM392_-_SP_2025_-_FE_3553.webp

☑Kizspy.me
(Choose 1 answer)
☐ A
Back
Next
FUO.sh
sh the exam.
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.createlnstance(MyApiEndpointInterface.class);

Thông tin

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

Share this media

Back
Bên trên Bottom