TA的每日心情 | 开心 2021-3-12 23:18 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
jsp2.0表达式语言,学习和使用jsp2.0表达式语言,pdf格式。中文。如下图:
考考你(22)
What is the result of attempting to compile and run the following program?
public class Test {
private int i = j;
private int j = 10;
public static void main(String args[]){
System.out.println((new Test()).i);
}
}
Select one correct answer
a. Compiler error complaining about access restriction
of private variables of Test.
b. Compiler error complaining about forward referencing.
c. No error - The output is 0;
d. No error - The output is 10;
点击查看答案
源码下载:http://file.javaxxz.com/2014/10/29/235720156.zip |
|