Question: what is the difference between a fragment and an activity?
Answer: A significant difference between an Activity and a Fragment is how activities and fragments use their respective back stacks, so that the user can navigate back with the Back button (as discussed in Tasks and Back Stack). For an Activity , the system automatically maintains a back stack of activities.