exam questions

Exam Associate Android Developer All Questions

View all questions & answers for the Associate Android Developer exam

Exam Associate Android Developer topic 1 question 63 discussion

Actual exam question from Google's Associate Android Developer
Question #: 63
Topic #: 1
[All Associate Android Developer Questions]

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".
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...