title: Java collection program showing error - Stack is abstract, cannot be instantiated
body: <pre><code>import java.util.*;
  
  public class StackDemo
  {
      public static void main (String[] args)
      {
          Stack st = new Stack();
      }
  }
  </code></pre>
  
  <p>While running this code on JCreator with JDK 1.6 an error is occured - </p>
  
  <blockquote>
    <p>Stack is abstract; cannot be instantiated
            Stack st = new Stack();</p>
  </blockquote>
  
  <p>Otherwise program runs successfully on online compilers like <a href="http://www.compileonline.com/" rel="nofollow">http://www.compileonline.com/</a></p>
  
  <p>Please help.</p>