试题详情
- 单项选择题 Which is the earliest line in the following code after which the object created on the line marked (0) will be a candidate for being garbage collected, assuming no compiler optimizations are done? () public class Q76a9 { static String f() { String a = "hello"; String b = "bye"; // (0) String c = b + "!"; // (1) String d = b; b = a; // (2) d = a; // (3) return c; // (4) } public static void main(String args[]) { String msg = f(); System.out.println(msg); // (5) } }
A、The line marked (1).
B、The line marked (2).
C、The line marked (3).
D、The line marked (4).
E、The line marked (5).
- C
关注下方微信公众号,在线模考后查看
热门试题
- 1. abstract&en
- A Company.com&
- java语言中,按照一定格式生成程序的文
- public class Yippee
- 下面有关servlet的层级结构和常用的
- 利用线程方法编写JApplet程序,实现
- 关于try...catch...fina
- 建立Sochet类的服务器端需要哪些步骤
- int i= 1,
- 能够遍历泛型List〈Integer〉&
- 现有:D -&
- 面板中可以设置的属性有()
- public class&e
- continue只能出现在在循环语句中(
- Which statement
- Which two code frag
- Given the&ensp
- public class&e
- Less Test{&ens
- 盒式布局管理器BoxLayout的构造函