title: Can throw be used instead of break in a switch statement?
body: <p>Can throw also be used to exit switch statement without using break keyword? Why use a throw instead of break? </p>
  
  <pre><code>switch(number)
  {
      case 1:
          throw new RuntimeException("Exception number 1");
      case 2:     
          throw new RuntimeException("Exception number 2"); 
  }
  </code></pre>