public static void main(String[] args) throws Exception { a: System.out.println("2"); b: System.out.println("3"); }
执行环境JDK1.8,执行未报错,有大神知道这个Java语法的用法吗?
这个就是标号,允许你goto跳转的。