多选题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 ?()Acompaction ratio limitBgarbage collection frequencyCgarbage collection timesD

题目
多选题
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


相似考题
更多“多选题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 ?()Acompaction ratio limitBgarbage collection frequencyCgarbage collection timesD”相关问题
  • 第1题:

    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,D

  • 第2题:

    You plan to have a larger moving window size for the default system-defined moving window baseline because you want to use the adaptive threshold. Which statement factors in this consideration while increasing the size of the moving window?()

    • A、The collection level for the AWR should be set to BASIC
    • B、The moving window size must be less than Undo Retention
    • C、The moving window size should be greater than the Automatic Workload Repository (AWR) retention period
    • D、The moving window size should be equal to or less than the Automatic Workload Repository (AWR) retention period

    正确答案:D

  • 第3题:

    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

  • 第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题:

    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.

    正确答案:B,D

  • 第6题:

    Initially, for the Automatic Workload Repository (AWR) statistics, the retention period is set to 7 days, the collection interval is set to 30 minutes and the collection level is set to Typical in your production database.  You have been using the Memory Advisor for the last three months to generate recommendations for tuning memory components. However, when you observe the Memory Advisor on a Friday, you find that the statistics are available only for two days, Thursday and Friday, of that week.  What would have caused the statistics to be removed?()

    • A、On Wednesday, the statistics have been purged.
    • B、On Wednesday, the retention period has been set to zero.
    • C、On Wednesday, the collection interval has been set to zero.
    • D、On Wednesday, the collection level has been changed to All.
    • E、On Wednesday, the retention period has been set to one day.
    • F、On Wednesday, the retention period has been set to two days.
    • G、On Wednesday, the collection level has been changed to Typical.
    • H、On Wednesday, the collection interval has been set to 1440 minutes.

    正确答案:F

  • 第7题:

    What two statements are true about Oracle Enterprise Manager’s Java Diagnostic tool, which makes the tool suitable for production server diagnostics ?()

    • A、 virtually zero overhead for application running in the JVM 
    • B、 no stalling of running JVM when taking a heap dump for memory analysis 
    • C、 no need of modification, changes, or instrumentation of the application since is uses Network Protocol Analysis (NPA technology)
    • D、 provides Byte Code Instrumentation for Java

    正确答案:A,B

  • 第8题:

    多选题
    You need to store elements in a collection that guarantees that no duplicates are stored. Which two interfaces provide that capability?()
    A

    Java.util.Map

    B

    Java.util.Set

    C

    Java.util.List

    D

    Java.util.StoredSet

    E

    Java.util.StoredMap

    F

    Java.util.Collection


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

  • 第9题:

    多选题
    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
    解析: 暂无解析

  • 第10题:

    多选题
    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. 

  • 第11题:

    单选题
    How can you force garbage collection of an object?()
    A

     Garbage collection cannot be forced.

    B

     Call System.gc().

    C

     Call System.gc(), passing in a reference to the object to be garbage collected.

    D

     Call Runtime.gc().

    E

     Set all references to the object to new values(null, for example).


    正确答案: A
    解析: 在Java中垃圾收集是不能被强迫立即执行的。调用System.gc()或Runtime.gc()静态方法不能保证垃圾收集器的立即执行,因为,也许存在着更高优先级的线程。所以选项B、D不正确。选项C的错误在于,System.gc()方法是不接受参数的。选项E中的方法可以使对象在下次垃圾收集器运行时被收集。

  • 第12题:

    单选题
    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
    解析: 暂无解析

  • 第13题:

    How can you force garbage collection of an object?()

    • A、 Garbage collection cannot be forced.
    • B、 Call System.gc().
    • C、 Call System.gc(), passing in a reference to the object to be garbage collected.
    • D、 Call Runtime.gc().
    • E、 Set all references to the object to new values(null, for example).

    正确答案:A

  • 第14题:

    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

  • 第15题:

    1. import java.util.*;  2. public class TestSet {  3. enum Example { ONE, TWO, THREE }  4. public static void main(String[] args) {  5. Collection coll = new ArrayList();  6. coll.add(Example.THREE);  7. coll.add(Example.THREE);  8. coll.add(Example.THREE);  9. coll.add(Example.TWO);  10. coll.add(Example.TWO);  11. coll.add(Example.ONE);  12. Set set = new HashSet(coll);  13. }  14. }  Which statement is true about the set variable on line 12?() 

    • A、 The set variable contains all six elements from the coll collection, and the order is guaranteed to be preserved.
    • B、 The set variable contains only three elements from the coll collection, and the order is guaranteed to be preserved.
    • C、 The set variable contains all six elements from the coil collection, but the order is NOT guaranteed to be preserved.
    • D、 The set variable contains only three elements from the coil collection, but the order is NOT guaranteed to be preserved.

    正确答案:D

  • 第16题:

    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.

    正确答案:E

  • 第17题:

    Which two PL/SQL8 features are supported in Oracle Forms?()

    • A、methods 
    • B、object tables 
    • C、object columns 
    • D、collection types 
    • E、object as stored procedure parameters

    正确答案:B,C

  • 第18题:

    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

  • 第19题:

    You work in a company which is named Wiikigo Corp. The company uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance. You are going to use the data collector to gather performance data periodically on all instances. You must store all collected data in the same database. This database is hosted on a single instance. Every five hours, you have to collect and load performance data in the management data warehouse. Which data collection process should you implement? () 

    • A、You should create a cached data collection 
    • B、You should create an on-demand non-cached data collection 
    • C、You should create a scheduled non-cached data collection. 
    • D、You should create two different SQL Agent jobs. The two jobs are scheduled at the same time. One job uploads the data collection and the other job creates a data collection.

    正确答案:C

  • 第20题:

    单选题
    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.


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

  • 第21题:

    单选题
    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.


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

  • 第22题:

    多选题
    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
    解析: 暂无解析

  • 第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题:

    单选题
    Initially, for the Automatic Workload Repository (AWR) statistics,the retention period is set to 7 days, the collection interval is set to 30 minutes and the collection level is set to Typical in your production database. You have been using the Memory Advisor for the last three months to generate recommendations for tuning memory components. However,when you observe the Memory Advisor on a Friday,you find that the statistics are available only for two days, Thursday and Friday,of that week. What would have caused the statistics to be removed?()
    A

    On Wednesday, the statistics have been purged.

    B

    On Wednesday, the retention period has been set to zero.

    C

    On Wednesday, the collection interval has been set to zero.

    D

    On Wednesday, the collection level has been changed to All.

    E

    On Wednesday, the retention period has been set to one day.

    F

    On Wednesday, the retention period has been set to two days

    G

    On Wednesday, the collection level has been changed to Typical.

    H

    On Wednesday, the collection interval has been set to 1440 minutes.


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