62,635
社区成员




class Test1 {
int i = j; // compile-time error:
// incorrect forward reference
int j = 1;
}
class Z {
static int i = j + 2;
static int j = 4;
}
class Z {
static int peek() { return j; }
static int i = peek();
static int j = 1;
}
class Test {
public static void main(String[] args) {
System.out.println(Z.i);
}
}
public class Test {
public static void main(String[] args) throws Exception{
int i = j; //(1)
int j = 10; //(2)
}
}
public class T{
private static int j;
private static int i = (j+2);
static{
j = 1;
}
public static void main(String[] args){
System.out.println(i);
}
}