Given a TextView widget named secondsTextView and a Runnable object named updateSeconds, which statement updates the widget on the UI thread?

Given a TextView widget named secondsTextView and a Runnable object named updateSeconds, which statement updates the widget on the UI thread?










a. secondsTextView.post(updateSeconds);
b. secondsTextView.run(updateSeconds);
c. updateSeconds.post(secondsTextView);
d. updateSeconds.run(secondsTextView);












Answer: A


Android

Learn More Multiple Choice Question :