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 "); } } 可产生哪两项结果?()
第1题:
What are two functions of the RE?()
第2题:
可用于定义新线程类的方法有()。
第3题:
Which statements about inheritance are true?()
第4题:
Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo() method, which two statements are true?()
第5题:
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? ()
第6题:
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? ()
第7题:
Add a DataProtectionPermission attribute to the CreditCardNumber property and set the ProtectData property to true.
Convert the DataContract to a MessageContract and set the ProtectionLevel property to SignAndEncrypt.
Change the data type of CreditCardNumber from string to SecureString.
Implement the CreditCardNumber property getter and setter.
第8题:
Create an HttpSessionListener class and implement the sessionInitialized method with that block ofcode.
Create an HttpSessionActivationListener class and implement the sessionCreated method with thatblock of code.
Create a Filter class, call the getSession(false) method, and if the result was null, then execute that block of code.
Create an HttpSessionListener class and implement the sessionCreated method with that block of code.
第9题:
DataPagingField
DataPagerCollection
DataPager
DataPaging
第10题:
A
The echo tag handler must define the setAttribute (String key, String value) method
The
The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interface
The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface
第11题:
The class implements java.lang.Comparable.
The class implements java.util.Comparator.
The interface used to implement sorting allows this class to define only one sort sequence.
The interface used to implement sorting allows this class to define many different sort sequences.
第12题:
An anonymous inner class may be declared as final.
An anonymous inner class can be declared as private.
An anonymous inner class can implement multiple interfaces.
An anonymous inner class can access final variables in any enclosing scope.
Construction of an instance of a static inner class requires an instance of the enclosing outer class.
第13题:
Which interface must a class implement so that instances of the class are notified after any object is addedto a session?()
第14题:
Voice quality is bad due to high delay and jitter on a link. Which two actions will improve the quality of voice calls?()
第15题:
Which statement is true?()
第16题:
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:
第17题:
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?()
第18题:
Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.
Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.
Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.
Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.
第19题:
javax.servlet.http.HttpSessionListener
javax.servlet.http.HttpSessionValueListener
javax.servlet.http.HttpSessionBindingListener
javax.servlet.http.HttpSessionAttributeListener
第20题:
Add a DataProtectionPermission attribute to the CreditCardNumber property and set the ProtectData property to true.
Convert the DataContract to a MessageContract and set the ProtectionLevel property to SignAndEncrypt.
Change the data type of CreditCardNumber from string to SecureString.
Implement the CreditCardNumber property getter and setter In the setter, run the value of the CreditCardNumber through the MD5CryptoServiceProvider class TransformBlock method.
第21题:
Your filter class must implement an init method and a destroy method.
Your filter class must also implement javax.servlet.FilterChain.
When your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.
The method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.
Your filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.
第22题:
In Java programming language only allows single inheritance.
In Java programming language allows a class to implement only one interface.
In Java programming language a class cannot extend a class and implement a interface together.
In Java programming language single inheritance makes code more reliable.
第23题:
Implement the INotifyPropertyChanged interface in the Product class.
Implement the IQueryable<Product> interface in the ProductList class.
Extend the DependencyObject class in the Product class.
Extend the ObservableCollection<Product> class in the ProductList class.
第24题:
javax.servlet.http.HttpSessionListener
javax.servlet.http.HttpSessionValueListener
javax.servlet.http.HttpSessionBindingListener
javax.servlet.http.HttpSessionAttributeListener