title: Why can't I use 'continue' inside a switch statement in Java?
body: <p>Why is it that the following code:</p>
  
  <pre><code>class swi  
  {
      public static void main(String[] args)  
      {  
          int a=98;
          switch(a)
          {
              default:{ System.out.println("default");continue;}
              case 'b':{ System.out.println(a); continue;}
              case 'a':{ System.out.println(a);}
          }
          System.out.println("Switch Completed");
      }
  }
  </code></pre>
  
  <p>Gives the error: </p>
  
  <blockquote>
    <p>continue outside of loop</p>
  </blockquote>