单选题Which statements about the garbage collection are true?()AThe program developer must create a thread to be responsible for free the memory.BThe garbage collection will check for and free memory no longer needed.CThe garbage collection allow the program

题目
单选题
Which statements about the garbage collection are true?()
A

 The program developer must create a thread to be responsible for free the memory.

B

 The garbage collection will check for and free memory no longer needed.

C

 The garbage collection allow the program developer to explicity and immediately free the memory.

D

 The garbage collection can free the memory used java object at expect time.


相似考题
更多“Which statements about the garbage collection are true?() ”相关问题
  • 第1题:

    Which two statements are true about L2TP tunnels?() (Choose two.)

    • A、Traffic is clear text
    • B、Traffic is encrypted 
    • C、They are initiated by the LNS
    • D、They are initiated by the LAC

    正确答案:A,D

  • 第2题:

    Which statement is true about XpauseTarget in Oracle JRockit JVM ? ()

    • A、 This option is supported by all type of Garbage collection modes.
    • B、 This option is only supported by Generational Garbage Collection mode.
    • C、 This option is only supported by Mark and Sweep Garbage Collection mode.
    • D、 This option is only supported by Dynamic Garbage Collection mode.

    正确答案:D

  • 第3题:

    Which of the following statements is true about a router's eBGP peers that is not  also true about that same router's iBGP peers?()

    • A、The eBGP peer neighborship uses TCP
    • B、The eBGP peer uses port 180 (default)
    • C、The eBGP peer uses the same ASN as the local router
    • D、The eBGP peer updates its AS_Path PA before sending updates to  this router

    正确答案:D

  • 第4题:

    Which of these statements concerning the collection interfaces are true?()  

    • A、Set extends Collection.
    • B、All methods defined in Set are also defined in Collection.
    • C、List extends Collection.
    • D、All methods defined in List are also defined in Collection.
    • E、Map extends Collection.

    正确答案:A,B,C

  • 第5题:

    Which three statements about subqueries are true? ()

    • A、Asinglerowsubquerycanretrieveonlyonecolumnandonerow.
    • B、Asinglerowsubquerycanretrieveonlyonerowbutmanycolumns.
    • C、Amultiplerowsubquerycanretrievemultiplerowsandmultiplecolumns.
    • D、Amultiplerowsubquerycanbecomparedusingthe";>;";operator.
    • E、AsinglerowsubquerycanusetheINoperator.
    • F、Amultiplerowsubquerycanusethe";=";operator.

    正确答案:B,C,E

  • 第6题:

    单选题
    Which of the following statements about the golf club is NOT true?
    A

    It’s at the top of the cliff.

    B

    They were not allowed to be in the club.

    C

    They parked the car near the club.


    正确答案: A
    解析:
    根据there was a golf club at the top of the cliff that we weren’t allowed into可见A项和B项说法正确。文中只提到停放汽车,但没有提及停在哪儿。

  • 第7题:

    单选题
    Which of the following statements is NOT true?
    A

    Communities all over the world have to face the fact that the world runs out of space to put its trash.

    B

    Having no space to dump the garbage forces some countries to begin recycling programs.

    C

    Recycling was once unfavorably considered as a counter culture activity.

    D

    We have to admit that recycling of the garbage will never move into the mainstream.


    正确答案: A
    解析:
    A与第二段第一句话“无论是纽约,还是世界上其他国家,都无法找到足够的空间来存放垃圾”相符;B与第四段第一句话,“垃圾过剩促使日本,美国和西欧的一些国家开始了废物回收利用的方法”内容相符。C为正确答案,参看第四段第二句话“在过去,废物的回收利用为一些文化所不接受,但现在这种做法已成为主流”。D否认了垃圾回收利用为主流做法,因此选D。

  • 第8题:

    单选题
    Which statement is true about XpauseTarget in Oracle JRockit JVM ? ()
    A

     This option is supported by all type of Garbage collection modes.

    B

     This option is only supported by Generational Garbage Collection mode.

    C

     This option is only supported by Mark and Sweep Garbage Collection mode.

    D

     This option is only supported by Dynamic Garbage Collection mode.


    正确答案: C
    解析: 暂无解析

  • 第9题:

    多选题
    Examine this command: SQL > exec DBMS_STATS.SET_TABLE_PREFS (‘SH’, ‘CUSTOMERS’, ‘PUBLISH’, ‘false’); Which three statements are true about the effect of this command?()
    A

    Statistics collection is not done for the CUSTOMERS table when schema stats are gathered.

    B

    Statistics collection is not done for the CUSTOMERS table when database stats are gathered.

    C

    Any existing statistics for the CUSTOMERS table are still available to the optimizer at parse time.

    D

    Statistics gathered on the CUSTOMERS table when schema stats are gathered are stored as pending statistics.

    E

    Statistics gathered on the CUSTOMERS table when database stats are gathered are stored as pending statistics.


    正确答案: E,B
    解析: 暂无解析

  • 第10题:

    单选题
    Which statements about the garbage collection are true?()
    A

     The program developer must create a thread to be responsible for free the memory.

    B

     The garbage collection will check for and free memory no longer needed.

    C

     The garbage collection allow the program developer to explicity and immediately free the memory.

    D

     The garbage collection can free the memory used java object at expect time.


    正确答案: A
    解析: Java语言将内存分配和释放的工组交给了自己,程序员不必做这些工作,它提供一个系统级的线程跟踪每个内存的分配,在JVM的空闲处理中,垃圾收集线程将检查和释放不再使用的内存(即可以被释放的内存)。垃圾收集的过程在java程序的生存期中是自动的,不需要分配和释放内存,也避免了内存泄漏。可以调用System.gc()方法建议(suggest)JVM执行垃圾收集以使得可被释放的内存能立即被使用,当此方法返回的时候,JVM已经做了最大的努力从被丢弃的对象上回收内存空间。程序员不能指定收集哪些内存,一般而言也不用关心这个问题,除非是程序的内存消耗很大,特别是有很多临时对象时可以“建议“进行垃圾收集以提高可用内存。需要指出的是调用System.gc()方法不能保证JVM立即进行垃圾收集,而只能是建议,因为垃圾收集线程的优先级很低(通常是最低的)。

  • 第11题:

    多选题
    class A {  }  class Alpha {  private A myA = new A();  void dolt( A a ) {  a = null;  }  void tryIt() {  dolt( myA );  }  }  Which two statements are correct?()
    A

    There are no instanced of A that will become eligible for garbage collection.

    B

    Explicitly setting myA to null marks that instance to be eligible for garbage collection.

    C

    Any call on tryIt() causes the private instance of A to be marked for garbage collection.

    D

    Private instances of A become eligible for garbage collection when instances of Alpha become eligible for garbage collection.


    正确答案: A,D
    解析: 暂无解析

  • 第12题:

    多选题
    Which statements describe guaranteed behavior of the garbage collection and finalization mechanisms?()
    A

    Objects are deleted when they can no longer be accessed through any reference.

    B

    The finalize() method will eventually be called on every object.

    C

    The finalize() method will never be called more than once on an object.

    D

    An object will not be garbage collected as long as it is possible for an active part of the program to      access it through a reference.

    E

    The garbage collector will use a mark and sweep algorithm.


    正确答案: B,D
    解析: 暂无解析

  • 第13题:

    Which statements describe guaranteed behavior of the garbage collection and finalization mechanisms?()  

    • A、Objects are deleted when they can no longer be accessed through any reference.
    • B、The finalize() method will eventually be called on every object.
    • C、The finalize() method will never be called more than once on an object.
    • D、An object will not be garbage collected as long as it is possible for an active part of the program to      access it through a reference.
    • E、The garbage collector will use a mark and sweep algorithm.

    正确答案:C,D

  • 第14题:

    Which two statements about the Cisco Nexus 1000V VSM are true?()

    • A、It performs switching decisions and forwarding for the VEM
    • B、It can be run on a virtual machine
    • C、It can be used for remote VEM switching Iine cards

    正确答案:B,C

  • 第15题:

    Which statements about the garbage collection are true?() 

    • A、 The program developer must create a thread to be responsible for free the memory.
    • B、 The garbage collection will check for and free memory no longer needed.
    • C、 The garbage collection allow the program developer to explicity and immediately free the memory.
    • D、 The garbage collection can free the memory used java object at expect time.

    正确答案:B

  • 第16题:

    Oracle JRockit JVM uses -Xns option to set nursery size when the generational garbage collection mode is used.  Which two JVM properties are affected by changing its size ?()

    • A、 compaction ratio limit
    • B、 garbage collection frequency
    • C、 garbage collection times
    • D、 fragmentation heap size

    正确答案:B,C

  • 第17题:

    单选题
    According to the passage, which of the following statements is TRUE?
    A

    The American ship eventually found a port and dumped its garbage before it returned home.

    B

    Throwaway societies don’t need to transport their refuse and garbage to incinerator because they have a lot of space to put them.

    C

    The wandering ship with garbage reflected the fact that garbage problem became very serious.

    D

    The huge populations of rats swarm through poor neighborhood in many Western European countries because the garbage is thrown into the open dumps.


    正确答案: C
    解析:
    C意为“那艘漂泊的船只反映了垃圾问题已很严重了”,与文章第一句话“那艘到处漂泊的船只是一个戏剧性的象征,它突出说明了我们这个时代的一个折磨人的问题:全球垃圾危机。”内容相符。故正确答案为C项。

  • 第18题:

    单选题
    11. class Snoochy {  12. Boochybooch;  13. public Snoochy() { booch = new Boochy(this); }  14. }  15.  16. class Boochy {  17. Snoochy snooch;  18. public Boochy(Snoochy s) { snooch = s; }  19. }  And the statements:  21. public static void main(String[] args) {  22. Snoochy snoog = new Snoochy();  23. snoog = null;  24. // more code here  25. }  Which statement is true about the objects referenced by snoog, snooch, and booch immediately after line 23 executes?()
    A

     None of these objects are eligible for garbage collection.

    B

     Only the object referenced by booch is eligible for garbage collection.

    C

     Only the object referenced by snoog is eligible for garbage collection.

    D

     Only the object referenced by snooch is eligible for garbage collection.

    E

     The objects referenced by snooch and booch are eligible for garbage collection.


    正确答案: A
    解析: 暂无解析

  • 第19题:

    单选题
    Which of the following statements is NOT true about the postal service?
    A

    American abortionists were not happy about it.

    B

    The stamp was invented in Britain.

    C

    It helped the independence of America.

    D

    In the 1840s it was the major means of national communications in Britain.


    正确答案: B
    解析:
    第五段指出“19世纪,邮政服务奠定了国内和国际交流的基石。邮票的出现、较低的价位和由发信人付费都对邮政服务的发展至关重要。在1840年英国使这些想法都成为了现实”,由此可知选项B(邮票是在英国发明的)和选项D(1840年邮政服务是英国国内交流的主要方式)都符合原文。从文章第六段提到的美国商人可通过邮政服务收集信息,邮政促进废奴思想的传播等可以看出postal service在美国获得独立方面起到了促进作用,因此选项C也正确。文章中并未提到“美国有权流产主义者”对其态度。

  • 第20题:

    多选题
    Which of these statements concerning the collection interfaces are true?()
    A

    Set extends Collection.

    B

    All methods defined in Set are also defined in Collection.

    C

    List extends Collection.

    D

    All methods defined in List are also defined in Collection.

    E

    Map extends Collection.


    正确答案: A,B,C
    解析: 暂无解析

  • 第21题:

    多选题
    1. class TestA {  2. TestB b;  3. TestA() {  4. b = new TestB(this);  5. }  6. }  7. class TestB {  8. TestA a;  9. TestB(TestA a) {  10. this.a = a;  11. }  12. }  13. class TestAll {  14. public static void main (String args[]) {  15. new TestAll().makeThings(); 16. // ...code continues on  17. }  18. void makeThings() {  19. TestA test = new TestA(); 20. }  21. }  Which two statements are true after line 15, before main completes?()
    A

    Line 15 causes a stack overflow.

    B

    An exception is thrown at runtime.

    C

    The object referenced by a is eligible for garbage collection.

    D

    The object referenced by b is eligible for garbage collection.

    E

    The object referenced by a is not eligible for garbage collection.

    F

    The object referenced by b is not eligible for garbage collection.


    正确答案: C,F
    解析: This is a typical example of the island of isolation. On line 15, the two objects TestA and TestB have a reference to one an other. Therefore, the correct answers are C. and D. A key point to remember is that an object that is referenced by another object can be eligible for garbage collection if the two objects form an island of isolated objects. 

  • 第22题:

    多选题
    Which three statements about subqueries are true? ()
    A

    Asinglerowsubquerycanretrieveonlyonecolumnandonerow.

    B

    Asinglerowsubquerycanretrieveonlyonerowbutmanycolumns.

    C

    Amultiplerowsubquerycanretrievemultiplerowsandmultiplecolumns.

    D

    Amultiplerowsubquerycanbecomparedusingthe;>;;operator.

    E

    AsinglerowsubquerycanusetheINoperator.

    F

    Amultiplerowsubquerycanusethe;=;operator.


    正确答案: D,A
    解析: 暂无解析

  • 第23题:

    多选题
    Oracle JRockit JVM uses -Xns option to set nursery size when the generational garbage collection mode is used.  Which two JVM properties are affected by changing its size ?()
    A

    compaction ratio limit

    B

    garbage collection frequency

    C

    garbage collection times

    D

    fragmentation heap size


    正确答案: A,D
    解析: 暂无解析

  • 第24题:

    单选题
    11.class Snoochy{ 12.Boochybooch; 13.public Snoochy(){booch=newBoochy(this);} 14.} 15. 16.class Boochy{ 17.Snoochy snooch; 18.public Boochy(Snoochys){snooch=s;} 19.} And the statements: 21.public static void main(String[]args){ 22.Snoochy snoog=new Snoochy(); 23.snoog=null; 24.//more code here 25.} Which statement is true about the objects referenced by snoog,snooch,and booch immediately after line 23 executes?()
    A

    None of these objects are eligible for garbage collection.

    B

    Only the object referenced by booch is eligible for garbage collection.

    C

    Only the object referenced by snoog is eligible for garbage collection.

    D

    Only the object referenced by snooch is eligible for garbage collection.

    E

    The objects referenced by snooch and booch are eligible for garbage collection.


    正确答案: A
    解析: 暂无解析