class Foo { final int i; int j; public void doSomething() { System.out.println(++j + i); } }
0
1
2
不能执行,由于编译有错
D。final类型的变量必定要初始化,由于final的变量不可更改。java