单选题What allows the programmer to destroy an object x?()Ax.delete()Bx.finalize()CRuntime.getRuntime().gc()DExplicitly setting the object’s reference to null.EEnsuring there are no references to the object.FOnly the garbage collection system can destroy an 

题目
单选题
What allows the programmer to destroy an object x?()
A

 x.delete()

B

 x.finalize()

C

 Runtime.getRuntime().gc()

D

 Explicitly setting the object’s reference to null.

E

 Ensuring there are no references to the object.

F

 Only the garbage collection system can destroy an object.


相似考题
更多“What allows the programmer to destroy an object x?()  ”相关问题
  • 第1题:

    ● (73)testing is the responsibility ofthe programmer, who knows exactly what is going on inside the program.

    (73)

    A. Acceptance

    B.System

    C.Black box

    D.White box


    正确答案:D

  • 第2题:

    Which two are true?()

    • A、 An encapsulated, public class promotes re-use.
    • B、 Classes that share the same interface are always tightly encapsulated.
    • C、 An encapsulated class allows subclasses to overload methods, but does NOT allow overriding methods.
    • D、 An encapsulated class allows a programmer to change an implementation without affecting outside code.

    正确答案:A,D

  • 第3题:

    What is true about the WITH GRANT OPTION clause?()

    • A、It allows a grantee DBA privileges.
    • B、It is required syntax for object privileges.
    • C、It allows privileges on specified columns of tables.
    • D、It is used to grant an object privilege on a foreign key column.
    • E、It allows the grantee to grant object privileges to other users and roles.

    正确答案:E

  • 第4题:

    What allows the programmer to destroy an object x?()  

    • A、 x.delete()
    • B、 x.finalize()
    • C、 Runtime.getRuntime().gc()
    • D、 Explicitly setting the object’s reference to null.
    • E、 Ensuring there are no references to the object.
    • F、 Only the garbage collection system can destroy an object.

    正确答案:F

  • 第5题:

    When creating a virtual Ethernet adapter on the HMC for a VIO server, what is the advantage of checking the box to access external network (trunk)?()

    • A、Allows the creation of a shared Ethernet adapter
    • B、Allows the use of VLANs
    • C、Allows the consolidation of multiple networks on one adapter
    • D、Allows EtherChannel load balancing

    正确答案:A

  • 第6题:

    What can cause a thread to become non-runnable?()

    • A、 Exiting from a synchronized block.
    • B、 Calling the wait method on an object.
    • C、 Calling the notify method on an object.
    • D、 Calling the notifyAll method on an object.

    正确答案:B

  • 第7题:

    Identify two correct statements to complete the sentance. In a Coherence implementation, it is a best practice to implement PortableObject on all customer objects because:()

    • A、 it leverages Java’s built-in serialization
    • B、 it provides a more efficient serialization of the object
    • C、 it allows the object to be shared across applications
    • D、 it allows the object to be shared across programming platforms

    正确答案:B,D

  • 第8题:

    单选题
    IBM System x and BladeCenter systems use cooling technology that allows managed airflow to each component.  What is the name of this technology?()
    A

    Calibrated Vectored Cooling

    B

    Rear Door Heat eXchanger

    C

    IBM Active Energy Manager

    D

    Light Path Diagnostics


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

  • 第9题:

    单选题
    What is true about the WITH GRANT OPTION clause?()
    A

    It allows a grantee DBA privileges.

    B

    It is required syntax for object privileges.

    C

    It allows privileges on specified columns of tables.

    D

    It is used to grant an object privilege on a foreign key column.

    E

    It allows the grantee to grant object privileges to other users and roles.


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

  • 第10题:

    单选题
    A programmer has an algorithm that requires a java.util.List that provides an efficient implementation of add(0, object), but does NOT need to support quick random access. What supports these requirements?()
    A

    java.util.Queue

    B

    java.util.ArrayList

    C

    java.util.LinearList

    D

    java.util.LinkedList


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

  • 第11题:

    单选题
    What is the function of L2TP?()
    A

    It allows L2F tunnels across the network.

    B

    It allows GRE tunnels across the network.

    C

    It allows PPTP tunnels across the network.

    D

    It allows PPP to be tunneled across a network


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

  • 第12题:

    多选题
    Identify two correct statements to complete the sentance. In a Coherence implementation, it is a best practice to implement PortableObject on all customer objects because:()
    A

    it leverages Java’s built-in serialization

    B

    it provides a more efficient serialization of the object

    C

    it allows the object to be shared across applications

    D

    it allows the object to be shared across programming platforms


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

  • 第13题:

    How does the Extended Get Digit String step differ from the Get Digit String? ()

    • A、It can be used in conjunction with another step. 
    • B、It allows the application programmer into another section of the application. 
    • C、Most of the Extended Get Digit String variables can be changed while the application is running. 
    • D、It allows the entry of a Boolean expression for the Interruptible and Clear DTMF Buffer on Retry fields.

    正确答案:C,D

  • 第14题:

    What is the function of L2TP?()

    • A、It allows L2F tunnels across the network.
    • B、It allows GRE tunnels across the network.
    • C、It allows PPTP tunnels across the network.
    • D、It allows PPP to be tunneled across a network

    正确答案:D

  • 第15题:

    A company has a business application that provides its users with many different reports: receivables reports, payables reports, revenue projects, and so on. The company has just purchased somenew, state-of-the-art, wireless printers, and a programmer has been assigned the task of enhancing all ofthe reports to use not only the company’s old printers, but the new wireless printers as well. When the programmer starts looking into the application, the programmer discovers that because of the design of theapplication, it is necessary to make changes to each report to support the new printers. Which two designconcepts most likely explain this situation? ()

    • A、Inheritance
    • B、Low cohesion
    • C、Tight coupling
    • D、High cohesion
    • E、Loose coupling
    • F、Object immutability

    正确答案:B,C

  • 第16题:

    A programmer has an algorithm that requires a java.util.List that provides an efficient implementation of add(0, object), but does NOT need to support quick random access. What supports these requirements?()

    • A、java.util.Queue
    • B、java.util.ArrayList
    • C、java.util.LinearList
    • D、java.util.LinkedList

    正确答案:D

  • 第17题:

    What happens when thread X executes a wait() method on object A, without owning object A’s lock?()  

    • A、 Compilation fails.
    • B、 An exception is thrown.
    • C、 The wait() method has no effect.
    • D、 Thread X receives the lock immediately.
    • E、 Object A moves the thread to the wait pool.

    正确答案:B

  • 第18题:

    A company that makes Computer Assisted Design (CAD) software has, within its application, some utility classes that are used to perform 3D rendering tasks. The company's chief scientist has just improved the performance of one of the utility classes' key rendering algorithms, and has assigned a programmer to replace the old algorithm with the new algorithm. When the programmer begins researching the utility classes, she is happy to discover that the algorithm to be replaced exists in only one class. The programmer reviews that class's API, and replaces the old algorithm with the new algorithm, being careful that her changes adhere strictly to the class's API. Once testing has begun, the programmer discovers that other classes that use the class she changed are no longer working properly. What design flaw is most likely the cause of these new bugs?()

    • A、Inheritance
    • B、Tight coupling
    • C、Low cohesion
    • D、High cohesion
    • E、Loose coupling
    • F、Object immutability

    正确答案:B

  • 第19题:

    单选题
    A programmer has an algorithm that requires a java.util.List that provides an efficient implementation of add(0,object), but does NOT need to support quick random access. What supports these requirements?()
    A

     java.util.Queue

    B

     java.util.ArrayList

    C

     java.util.LinearList

    D

     java.util.LinkedList


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

  • 第20题:

    多选题
    Which two are true?()
    A

    An encapsulated, public class promotes re-use.

    B

    Classes that share the same interface are always tightly encapsulated.

    C

    An encapsulated class allows subclasses to overload methods, but does NOT allow overriding methods.

    D

    An encapsulated class allows a programmer to change an implementation without affecting outside code.


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

  • 第21题:

    多选题
    How does the Extended Get Digit String step differ from the Get Digit String? ()
    A

    It can be used in conjunction with another step.

    B

    It allows the application programmer into another section of the application.

    C

    Most of the Extended Get Digit String variables can be changed while the application is running.

    D

    It allows the entry of a Boolean expression for the Interruptible and Clear DTMF Buffer on Retry fields.


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

  • 第22题:

    单选题
    public class Drink implements Comparable {  public String name;  public int compareTo(Object o) {  return 0;  }  }  and:  Drink one = new Drink();  Drink two = new Drink();  one.name= “Coffee”;  two.name= “Tea”;  TreeSet set = new TreeSet();  set.add(one);  set.add(two);  A programmer iterates over the TreeSet and prints the name of each Drink object. What is the result?()
    A

     Tea

    B

     Coffee

    C

     Coffee Tea

    D

     Compilation fails.

    E

     The code runs with no output.

    F

     An exception is thrown at runtime.


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

  • 第23题:

    单选题
    What happens when thread X executes a wait() method on object A, without owning object A’s lock?()
    A

     Compilation fails.

    B

     An exception is thrown.

    C

     The wait() method has no effect.

    D

     Thread X receives the lock immediately.

    E

     Object A moves the thread to the wait pool.


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