下面语法正确的是
try (InputStream inputStream = new FileInputStream("xxx.txt")) { // dosomethings } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }
public void test() { int i = 0; flag: while (i < 10) { i++; while (true) { break flag; } } }
private static class Demo { int val; }
public class Demo { private final static String a; }