9. WHAT IS APPCOMPATACTIVITY IN ANDROID STUDIO | Detailed Clarification | ANDROID APP DEVELOPMENT
On this video you’ll perceive intimately what’s AppCompatActivity with easy actual life examples.
Reference Hyperlink to the AppCompatActivity: http://developer.android.com/reference/android/help/v7/app/AppCompatActivity.html
So mainly MainActivity which is an empty class inherites the perform from AppCompatActivity class.
source