Question: Why do developers often put app initialization code in the Application class?

  1. The Application class is instantiated before any other class when the process for the application is created.
  2. The Application class is instantiated after any permissions requests when the process for the application is created.
  3. The Application class is created each time a new Activity is launched, making it ideal for initialization code.
  4. The Application class is created each time a background service is called, making it ideal for initialization code.

Answer: The correct answer of the above question is Option A:The Application class is instantiated before any other class when the process for the application is created.