New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Google Developers Certification - Associate Android Developer (Kotlin and Java Exam) Associate-Android-Developer Question # 12 Topic 2 Discussion

Google Developers Certification - Associate Android Developer (Kotlin and Java Exam) Associate-Android-Developer Question # 12 Topic 2 Discussion

Associate-Android-Developer Exam Topic 2 Question 12 Discussion:
Question #: 12
Topic #: 2

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


Get Premium Associate-Android-Developer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.