11. rbo = new ReallyBigObject(); 12. // more code here 13. rbo = null; 14. /* insert code here */ Which statement should be placed at line 14 to suggest that the virtual machine expend effort toward recycling the memory used by the object rbo?()
相似题目
-
11. public static void main(String[] args) { 12. Object obj = new Object() { 13. public int hashCode() { 14. returns 42; 15. } 16. }; 17. System.out.println(obj.hashCode()); 18. } What is the result? ()
-
10. public class ClassA { 11. public void count(int i) { 12. count(++i); 13. } 14. } And: 20. ClassA a = new ClassA(); 21. a.count(3); Which exception or error should be thrown by the virtual machine?()
-
Given: 11. public static void main(String[] args) { 12. Object obj = new int[] { 1, 2, 3 }; 13. int[] someArray = (int[])obj; 14. for (int i : someArray) System.out.print(i + " "); 15. } What is the result? ()
-
11. public static void main(String[] args) { 12. Integer i = uew Integer(1) + new Integer(2); 13. switch(i) { 14. case 3: System.out.println(”three”); break; 15. default: System.out.println(”other”); break; 16. } 17. } What is the result?()
-
1. public class X { 2. public static void main (String[]args) { 3. int [] a = new int [1] 4. modify(a); 5. System.out.printIn(a[0]); 6. } 7. 8. public static void modify (int[] a) { 9. a[0] ++; 10. } 11. } What is the result?()
-
11. public static void append(List list) { list.add(”0042”); } 12. public static void main(String[] args) { 13. List intList = new ArrayList(); 14. append(intList); 15. System.out.println(intList.get(0)); 16. } What is the result?()
-
11.public static void main(String[]args){ 12.Object obj=new int[]{1,2,3}; 13.int[] someArray=(int[])obj; 14.for(inti:someArray)System.out.print(i+"") 15.} What is the result?()
-
11. public static void main(String[] args) { 12. Object obj =new int[] { 1,2,3 }; 13. int[] someArray = (int[])obj; 14. for (int i: someArray) System.out.print(i +“ “) 15. } What is the result? ()
-
1. public class Boxer1 { 2. Integer i; 3. int x; 4. public Boxer1(int y) { 5. x=i+y; 6. System.out.println(x); 7. } 8. public static void main(String[] args) { 9. new Boxer1(new Integer(4)); 10. } 11. } What is the result?()
-
Given: 11.<% 12.request.setAttribute("vals", new String[]{"1","2","3","4"}); 13.request.setAttribute("index", "2"); 14.%> 15.<%-- insert code here --%> Which three EL expressions, inserted at line 15,are valid and evaluate to "3"?()
-
10. public Object m() { 11. Object o = new Float(3.14F); 12. Object [] oa = new Object[1]; 13. oa[0] = o; 14. o = null; 15. return oa[0]; 16. } When is the Float object, created in line 11, eligible for garbage collection?()
-
11. A. He got a new job. B. He was on holiday. C. He had a car accident. D. He was ill.
-
蓝月亮洗衣液11.jpg蓝月亮八克八件,泵头装计量式“浓缩+”洗衣液,机洗至尊广告主题方法是()。<img src="/js/editor20150812/dialogs/attachment_new/fileTypeImages/icon_jpg.png"/>
-
Questions 9 to 11 are based on the conversation you have just heard. 9.mp3:/js/editor20150812/dialogs/attachment_new/fileTypeImages/icon_mp3.gif
-
Track 11-3 (4.5).mp3:(5) ① 한국 사람 ② 중국 사람 ( )/js/editor20150812/dialogs/attachment_new/fileTypeImages/icon_mp3.gif
-
Track 11-3 (4.2).mp3:(2) ① 회사원 ② 회사 ( )/js/editor20150812/dialogs/attachment_new/fileTypeImages/icon_mp3.gif
-
Track 11-3 (4.4).mp3:(4) ① 시닙사원 ② 신입사원 ( )/js/editor20150812/dialogs/attachment_new/fileTypeImages/icon_mp3.gif
-
The number of people submitting new ______for jobless aid dropped by 11,000 last week.
-
in North America ,where new car sales are forecast to increase by 11 percent to 10. 46 million this year ,as well by the continuing expansion of demand in the Asia-Pacific region.
-
(专基__Js) new Date(2017,11,0).getDate()可以获取2017年11月的总天数
-
"关于以下程序代码的说明正确的是() 1. class HasStatic{ 2. private static int x=100; 3. public static void main(String args[ ]){ 4. HasStatic hs1=new HasStatic(); 5. hs1.x++; 6. HasStatic hs2=new HasStatic(); 7. hs2.x++; 8. hs1=new HasStatic(); 9. hs1.x++; 10. HasStatic.x- -; 11. System.out.println(""x=""+x); 12. } 13. }
-
You are the network administrator for Active Directory domain. Thedomain includes Windows Server 2003 domain controllers and Windows XPProfessional client computers.A new administrator named Sandra is hired to assist you in deploying Windows XPProfessional to 100 new computers. Sandra installs the operating system on a newcomputer named TestKing11.However, when Sandra tries to log on to the domain from TestKing11, she isunsuccessful. The logon dialog box does now allow her to view and select the domainname.You need to ensure that Sandra can log on to the domain from TestKing11.What should you do?()
-
You are the network administrator for TestKing.com Active Directory domain. The domain includes Windows Server 2003 domain controllers and Windows XP Professonal client computers.A new administrator named Sandra is hired to assist you in deploying Windows XP Professional to 100 new computers. Sandra installs the operating system on a new computer named TestKing11.However, when Sandra tries to log on to the domain from TestKing11, she is unsuccessful. The logon box does now allow her to view and select the domain name.You need to ensure that Sandra can log on to the domain from TestKing11.What should you do?()
-
请将下列程序的空白处补充完整。 Import java.awt.*; Public class E11__4 Public static void main(String args) Frame f=new Frame("BorderLayout"); _________; f.add("North",new button("North")); f.add("East",new button("E
推荐题目
- 泡沫灭火机不能用于带电灭火。
- 主要有()类盐可形成水垢。
- 人类文明在早期会有不同程度的倒退,但今后的文明只会越来越发达。
- 党的十八大报告再次表明了在坚持既定原则的前提下的对台方针政策,主要是()
- 统计行政诉讼是一种司法行为,主持机关是()。
- 拔牙前,不仅患者要做好准备,术者也要做好各项准备
- 关于智力的三元理论表述不正确的是()。
- 《中华人民共和国行政诉讼法》规定,人民法院应当在立案之日起()日内,将起诉状副本发送被告。
- X连锁显性遗传病,夫为患者,妻正常,子代()。
- 患儿,7岁,右下后牙松动近2个月。检查:右下第二乳磨牙无龋,松动Ⅰ度,右下第一恒磨牙冠远中萌出。X线片示右下第二乳磨牙远中根完全吸收,近中根完好,右下第一恒磨牙近中边缘嵴进入吸收区。右下第二乳磨牙松动的病因为A、牙周炎