public class MainActivity extends ActionBarActivity
public class MainActivity extends Activity
Earlier, while I was using the eclipse IDE, the first Java file generated had a Class that inherits from Activity. However, In android studio , it is ActionBarActivity, and how does both of these differ? why does it inherit from ActionBarActivity rather than Activity?