class Order implements Runnable {    public void run ()  {  try { Thread.sleep (2000) ;  } catch (Exception e)    System.out.print("in") ;  public static void main (String [] args)  {    Thread t = new Thread (new Order ()) ;    t.start () ;  System.out.print ("pre ") ;  try { t.join () ;  } catch (Exception e)  { }    System.out.print ("post") ;   可产生哪两项结果?()  A、 pre in postB、 pre inC、 in post preD、 in pre postE、 pre post in

class Order implements Runnable {    public void run ()  {  try { Thread.sleep (2000) ;  } catch (Exception e)    System.out.print("in") ;  public static void main (String [] args)  {    Thread t = new Thread (new Order ()) ;    t.start () ;  System.out.print ("pre ") ;  try { t.join () ;  } catch (Exception e)  { }    System.out.print ("post") ;   可产生哪两项结果?()  

  • A、 pre in post
  • B、 pre in
  • C、 in post pre
  • D、 in pre post
  • E、 pre post in

相关考题:

()a conscientious student,he never comes to class without preparing his lessons well. A、To beB、To have beenC、BeingD、In order to be

You are developing a Windows Communication Foundation (WCF) service that contains the following service contract.[ServiceContract()]public interface IPaymentService{ [OperationContract()] void RecordPayments(Person person);}public class Person{ ... }public class Employee : Person{ ... }public class Customer : Person{ ... }You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object.What should you do?()A. Add the following KnownType attribute to the Employee class and to the Customer class. [KnownType(GetType(Person))]B. Implement the IExtensibleDataObject interface in the Person class.C. Implement the IExtension(ofType(T)) interface in the Person class.D. Add the following KnownType attributes to the Person class. [KnownType(GetType(Employee))] [KnownType(GetType(Customer))]

下列各宏命令中,应该放在类实现中以支持序列化特性的宏命令是()。 A、IMPLEMENT_DYNAMIC(class_Name)B、IMPLEMENT_DYNCREATE(class_Name)C、IMPLEMENT_SERIAL(class_Name)D、IMPLEMENT_MESSAGE_MAP()

A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed.  Which two are true? ()A、 A  element in the echo tag LTD must have the value JSPB、 The echo tag handler must define the setAttribute (String key, String value) methodC、 The true element must appear in the echo tag TLDD、 The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interfaceE、 The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface

What are two functions of the RE?()A、to maintain routing tablesB、to forward traffic toward its destinationC、to manage the PFED、to implement various services such as policing, stateless firewall filtering, and class of service

Which interface must a class implement so that instances of the class are notified after any object is addedto a session?()A、javax.servlet.http.HttpSessionListenerB、javax.servlet.http.HttpSessionValueListenerC、javax.servlet.http.HttpSessionBindingListenerD、javax.servlet.http.HttpSessionAttributeListener

可用于定义新线程类的方法有()。A、implement the Runnable interfaceB、add a run()method in the classC、create an instance of ThreadD、extend the Thread class

Voice quality is bad due to high delay and jitter on a link. Which two actions will improve the quality  of voice calls?()A、Increase the queue size of the voice class.B、Guarantee bandwidth during congestion to the voice class with a bandwidth command.C、Increase the tx-ring of the egress interface.D、Implement LLQ for the voice class.E、Decrease the rx-ring of the egress interface.F、Decrease the queue size of the voice class.

Which statements about inheritance are true?()         A、 In Java programming language only allows single inheritance.B、 In Java programming language allows a class to implement only one interface.C、 In Java programming language a class cannot extend a class and implement a interface together.D、 In Java programming language single inheritance makes code more reliable.

Which statement is true?()A、 An anonymous inner class may be declared as final.B、 An anonymous inner class can be declared as private.C、 An anonymous inner class can implement multiple interfaces.D、 An anonymous inner class can access final variables in any enclosing scope.E、 Construction of an instance of a static inner class requires an instance of the enclosing outer class.

Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo() method, which two statements are true?()A、The class implements java.lang.Comparable.B、The class implements java.util.Comparator.C、The interface used to implement sorting allows this class to define only one sort sequence.D、The interface used to implement sorting allows this class to define many different sort sequences.

You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. The following markup should be added to a page:   The Question control is a custom server control that originates from the WebControl. This controldoes not implement any interfaces. The following characteristics are applied to the control’s class:ToolboxData, Designer, and DefaultProperty. You have to make sure that the Question control is able to participate in server-side validation onthis page. What should you do?()A、You should consider modifying the Question control’s class in order to implement IValidator.B、You should consider setting the ValidationGroup property of the RequiredFieldValidator controlto UserControl.C、You should apply the ValidationProperty feature to the Question control’s class.D、You should consider setting the InitialValue property of the RequiredFieldValidator control to anempty string.

You are developing a Web application to display products. Products are displayed on different pages on your Web site. You want to create a user control to manage the display of products. You need a default visual implementation of the UI of the user control. In addition, you need to provide developers with the flexibility to change the layout and controls of the UI. Which three actions should you perform? ()A、Apply the TemplateContainerAttribute to a property of type ITemplate. Pass the type of the template's naming container as the argument to the attribute.B、Apply the TemplateContainerAttribute to the user control's class declaration.C、Implement a property of type INamingContainer in the user control's code-behind class.D、Implement a property of type ITemplate in the user control's code-behind class.E、Define a new class that inherits from the ITemplate interface. Implement the InstantiateIn method of the ITemplate interface.

You are creating a Windows Communication Foundation (WCF) service to process orders.The data contract for the order is defined as follows:[DataContract]public class Order{ [DataMember] public string CardHolderName { get; set; } [DataMember] public string CreditCardNumber { get; set; }}You have the following requirements: Enable the transmission of the contents of Order from the clients to the service. Ensure that the contents of CreditCardNumber are not sent across the network in clear text. Ensure that the contents of CreditCardNumber are accessible by the service to process the order.You need to implement the service to meet these requirements. What should you do?()A、Add a DataProtectionPermission attribute to the CreditCardNumber property and set the ProtectData property to true.B、Convert the DataContract to a MessageContract and set the ProtectionLevel property to SignAndEncrypt.C、Change the data type of CreditCardNumber from string to SecureString.D、Implement the CreditCardNumber property getter and setter In the setter, run the value of the CreditCardNumber through the MD5CryptoServiceProvider class TransformBlock method.

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a ListBox control to the application. The ListBox control is data-bound to an instance of a custom collection class of the Product objects named ProductList. You need to ensure that changes to ProductList are automatically reflected in the ListBox control. What should you do? ()A、 Implement the INotifyPropertyChanged interface in the Product class.B、 Implement the IQueryableProduct interface in the ProductList class.C、 Extend the DependencyObject class in the Product class.D、Extend the ObservableCollectionProduct class in the ProductList class.

单选题Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()ACreate an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.BCreate an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.CCreate an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.DCreate an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

单选题You are creating a Windows Communication Foundation (WCF) service to process orders. The data contract for the order is defined as follows. [DataContract] public class Order {  [DataMember] public string CardHolderName { get; set; [DataMember] public string CreditCardNumber { get; set; } }You have the following requirements:  "Enable the transmission of the contents of Order from the clients to the service. "Ensure that the contents of CreditCardNumber are not sent across the network in clear text. "Ensure that the contents of CreditCardNumber are accessible by the service to process the order. You need to implement the service to meet these requirements. What should you do?() For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features!A Add a DataProtectionPermission attribute to the CreditCardNumber property and set the ProtectData property to true.B Convert the DataContract to a MessageContract and set the ProtectionLevel property to SignAndEncrypt.C Change the data type of CreditCardNumber from string to SecureString.D Implement the CreditCardNumber property getter and setter.

单选题Which interface must a class implement so that instances of the class are notified after any object is added to a session? ()A javax.servlet.http.HttpSessionListenerB javax.servlet.http.HttpSessionValueListenerC javax.servlet.http.HttpSessionBindingListenerD javax.servlet.http.HttpSessionAttributeListener

单选题In your web application,you need to execute a block of code whenever the session object is first created. Which design will accomplish this goal?()ACreate an HttpSessionListener class and implement the sessionInitialized method with that block ofcode.BCreate an HttpSessionActivationListener class and implement the sessionCreated method with thatblock of code.CCreate a Filter class, call the getSession(false) method, and if the result was null, then execute that block of code.DCreate an HttpSessionListener class and implement the sessionCreated method with that block of code.

单选题You are creating a Windows Communication Foundation (WCF) service to process orders.The data contract for the order is defined as follows:[DataContract]public class Order{ [DataMember] public string CardHolderName { get; set; } [DataMember] public string CreditCardNumber { get; set; }}You have the following requirements: Enable the transmission of the contents of Order from the clients to the service. Ensure that the contents of CreditCardNumber are not sent across the network in clear text. Ensure that the contents of CreditCardNumber are accessible by the service to process the order.You need to implement the service to meet these requirements. What should you do?()AAdd a DataProtectionPermission attribute to the CreditCardNumber property and set the ProtectData property to true.BConvert the DataContract to a MessageContract and set the ProtectionLevel property to SignAndEncrypt.CChange the data type of CreditCardNumber from string to SecureString.DImplement the CreditCardNumber property getter and setter In the setter, run the value of the CreditCardNumber through the MD5CryptoServiceProvider class TransformBlock method.

单选题Which class provides paging functionality for data-bound controls that implement the IPageableItemContainer interface?()ADataPagingFieldBDataPagerCollectionCDataPagerDDataPaging

多选题You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()AYour filter class must implement an init method and a destroy method.BYour filter class must also implement javax.servlet.FilterChain.CWhen your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.DThe method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.EYour filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.

多选题A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed.  Which two are true? ()AA  element in the echo tag LTD must have the value JSPBThe echo tag handler must define the setAttribute (String key, String value) methodCThe true element must appear in the echo tag TLDDThe class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interfaceEThe class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface

多选题Which statements about inheritance are true?()AIn Java programming language only allows single inheritance.BIn Java programming language allows a class to implement only one interface.CIn Java programming language a class cannot extend a class and implement a interface together.DIn Java programming language single inheritance makes code more reliable.

多选题Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo() method, which two statements are true?()AThe class implements java.lang.Comparable.BThe class implements java.util.Comparator.CThe interface used to implement sorting allows this class to define only one sort sequence.DThe interface used to implement sorting allows this class to define many different sort sequences.

单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a ListBox control to the application. The ListBox control is data-bound to an instance of a custom collection class of the Product objects named ProductList. You need to ensure that changes to ProductList are automatically reflected in the ListBox control. What should you do? ()A Implement the INotifyPropertyChanged interface in the Product class.B Implement the IQueryableProduct interface in the ProductList class.C Extend the DependencyObject class in the Product class.DExtend the ObservableCollectionProduct class in the ProductList class.

单选题Which statement is true?()A An anonymous inner class may be declared as final.B An anonymous inner class can be declared as private.C An anonymous inner class can implement multiple interfaces.D An anonymous inner class can access final variables in any enclosing scope.E Construction of an instance of a static inner class requires an instance of the enclosing outer class.

单选题Which interface must a class implement so that instances of the class are notified after any object is addedto a session?()Ajavax.servlet.http.HttpSessionListenerBjavax.servlet.http.HttpSessionValueListenerCjavax.servlet.http.HttpSessionBindingListenerDjavax.servlet.http.HttpSessionAttributeListener