Question 3 of 10Pro Only
What is the difference between the Android Activity lifecycle and the Fragment lifecycle? Why are both important?
Sample answer preview
Activities and Fragments are the two primary building blocks for Android UI, and each has its own lifecycle. Understanding both lifecycles is important because they control when your code runs, when the UI is visible, and when you should acquire or release resources.
activityfragmenton-createon-resumeon-destroy-viewback-stack