Loading practice questions
What is the purpose of the onCreate() method in an Android Activity?
Correct Answer: C — Initialize the Activity components
Explanation:
The onCreate() method is called when an Activity is created. It initializes UI components, sets up layouts, and prepares the Activity to interact with the user as part of the Activity lifecycle.