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