Solved

LiveDataPostValue() and LiveData

Question 50

Multiple Choice

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?


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".
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".

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents