-->
当前位置:首页 > 题库 > 正文内容

填空题:The output of the code below is:

Luz3年前 (2022-01-07)题库1271
The output of the code below is:

java
interface I {
int f(int i);
}

public class Main {
private int a;

Main(int i) {
a = i;
}

int f(I i, int j) {
return i.f(a + j);
}

public static void main(String[] args) {
Main m = new Main(2);
m.a += 3;
System.out.println(m.f(i -> i + i, 12));
}
}








答案:
第1空:34 ||

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。