下面哪些描述是正确的:( ) public ...
发布于 2022-03-03 16:43:32
下面哪些描述是正确的:( )
public class Test {
public static class A {
private B ref
public void setB(B b) {
ref = b
}
}
public static Class B {
private A ref
public void setA(A a) {
ref = a
}
}
public static void main(String args[]) {
…
start()
….
}
public static void start() { A a = new A()
B b = new B()
a.setB(b)
b = null //
a = null
…
}
}
登录后免费查看答案
关注者
0
被浏览
34