Exam AND-401 All QuestionsBrowse all questions from this exam
Question 43

An AsyncTask can be cancelled anytime from any thread.

    Correct Answer: B

    An AsyncTask can be cancelled only if it is invoked from the main thread. This is because AsyncTask is tightly bound to the UI thread and its lifecycle. Cancelling an AsyncTask from a background thread is not guaranteed to work correctly and can lead to unpredictable behavior.

Discussion
MmadiOption: A

A. True