If no app can handle an implicit intent, startActivity() throws:

  1. NullPointerException
  2. IOException
  3. SecurityException
  4. ActivityNotFoundException
Answer

D) ActivityNotFoundException

Catch ActivityNotFoundException to avoid a crash.

Computer Science MCQ · More Intents and Notifications MCQs · Practise