package com.amaio; /** * @author administrator * * To change this generated comment go to * Window>Preferences>Java>Code Generationyh and Comments */ public class Testik { public Testik() throws Exception { } public void test() throws Exception { switch (0) { case 1 : if (true) return; break; case 2 : break; default : throw new Exception("exception "); } } public static void main(String[] args) { try { Testik testik = new Testik(); testik.test(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }