title: AbstractApplicationContext vs ApplicationContext
body: <p>what is the difference between <code>AbstractApplicationContext</code> and <code>ApplicationContext</code>  ?
  can we call</p>
  
  <pre><code>context.registerShutdownHook()  
  </code></pre>
  
  <p>using <code>ApplicationContext</code>?</p>
  
  <p>I saw this while going through a sample code -</p>
  
  <pre><code>public static void main(String[] args) {
      AbstractApplicationContext context =new ClassPathXmlApplicationContext("Beans.xml");
      context.registerShutdownHook();
  }
  </code></pre>