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


参考解析

解析: 暂无解析

相关考题:

__, the chairman will not give up what he has decided to do.A、As you may objectB、Object as you mayC、Object though you mayD、Object if you may

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.InheritanceB.Tight couplingC.Low cohesionD.High cohesionE.Loose couplingF.Object immutability

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

In object-oriented(51), objects can be viewed as reusable components, and once the programmer has developed a(52)of these components, he can(53)the amount of new coding required. But(52)a(54)is no simple task because the integrity of the Original software design is critical. Reusability can be a mixed blessing for user, too, as a programmer has to be able to find the object he needs. But if(55)is your aim, reusability is worth the risk.A.programmingB.creatingC.indisposingD.libraryE.maximize

● (73)testing is the responsibility ofthe programmer, who knows exactly what is going on inside the program.(73)A. AcceptanceB.SystemC.Black boxD.White box

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.

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.

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

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.

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、InheritanceB、Low cohesionC、Tight couplingD、High cohesionE、Loose couplingF、Object immutability

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.

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.QueueB、java.util.ArrayListC、java.util.LinearListD、java.util.LinkedList

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 adapterB、Allows the use of VLANsC、Allows the consolidation of multiple networks on one adapterD、Allows EtherChannel load balancing

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.

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.

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、InheritanceB、Tight couplingC、Low cohesionD、High cohesionE、Loose couplingF、Object immutability

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 serializationB、 it provides a more efficient serialization of the objectC、 it allows the object to be shared across applicationsD、 it allows the object to be shared across programming platforms

单选题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.QueueB java.util.ArrayListC java.util.LinearListD java.util.LinkedList

单选题IBM System x and BladeCenter systems use cooling technology that allows managed airflow to each component.  What is the name of this technology?()ACalibrated Vectored CoolingBRear Door Heat eXchangerCIBM Active Energy ManagerDLight Path Diagnostics

多选题Which two are true?()AAn encapsulated, public class promotes re-use.BClasses that share the same interface are always tightly encapsulated.CAn encapsulated class allows subclasses to overload methods, but does NOT allow overriding methods.DAn encapsulated class allows a programmer to change an implementation without affecting outside code.

单选题What is true about the WITH GRANT OPTION clause?()AIt allows a grantee DBA privileges.BIt is required syntax for object privileges.CIt allows privileges on specified columns of tables.DIt is used to grant an object privilege on a foreign key column.EIt allows the grantee to grant object privileges to other users and roles.

多选题How does the Extended Get Digit String step differ from the Get Digit String? ()AIt can be used in conjunction with another step.BIt allows the application programmer into another section of the application.CMost of the Extended Get Digit String variables can be changed while the application is running.DIt allows the entry of a Boolean expression for the Interruptible and Clear DTMF Buffer on Retry fields.

单选题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?()Ajava.util.QueueBjava.util.ArrayListCjava.util.LinearListDjava.util.LinkedList

单选题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 TeaB CoffeeC Coffee TeaD Compilation fails.E The code runs with no output.F An exception is thrown at runtime.

单选题What is the function of L2TP?()AIt allows L2F tunnels across the network.BIt allows GRE tunnels across the network.CIt allows PPTP tunnels across the network.DIt allows PPP to be tunneled across a network

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

多选题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:()Ait leverages Java’s built-in serializationBit provides a more efficient serialization of the objectCit allows the object to be shared across applicationsDit allows the object to be shared across programming platforms