Câu 8: Associate Android Developer
LiveData.postValue() and LiveData.setValue() methods have some differences. So if you have a following code executed in the main thread: liveData.postValue("a"); liveData.setValue("b");What will be the correct statement?
Nội dung câu hỏi
LiveData.postValue() and LiveData.setValue() methods have some differences. So if you have a following code executed in the main thread: liveData.postValue("a"); liveData.setValue("b");What will be the correct statement?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. The value "b" would be set at first and later the main thread would override it with the value "a".
- B. The value "a" would be set at first and later the main thread would override it with the value "b". — đáp án hiện tại
- C. The value "b" would be set at first and would not be overridden with the value "a".
- D. The value "a" would be set at first and would not be overridden with the value "b".
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.