Multiple Choice
In our TeaViewModel class, that extends ViewModel , we have such method: public LiveData<Tea> getTea() { return mTea; } An observer in our Activity (type of mViewModel variable in example is ) is set in this way: mViewModel.getTea() .observe(this, this::displayTea) ; What will be a correct displayTea method definition?
A) private void displayTea()
B) private void displayTea(Tea tea)
C) private void displayTea(LiveData<Tea>)
D) private void displayTea(LiveData<T>)
Correct Answer:

Verified
Correct Answer:
Verified
Q68: A class that you create for managing
Q69: For example, we have a file in
Q70: To run your local unit tests, follow
Q71: To run a debuggable build variant you
Q72: A content label sometimes depends on information
Q74: Which build options in the Build menu
Q75: If content in a PagedList updates, the
Q76: What is demonstrated by the code below?
Q77: We have a custom view that extends
Q78: When using an EditTexts or editable TextViews,