判断题:以下程序会出现编译错误:
以下程序会出现编译错误:
public class F {
int i = 0;
static String s = "hello";
void imethod() {
System.out.println(s);
}
static void smethod() {
System.out.println(s);
}
}
答案:FALSE
public class F {
int i = 0;
static String s = "hello";
void imethod() {
System.out.println(s);
}
static void smethod() {
System.out.println(s);
}
}
答案:FALSE