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.
第1题:
Router R1, a branch router, connects to the Internet using DSL. Some traffic flows through a GRE and IPsec tunnel, over the DSL connection, destined for an Enterprise network. Which of the following answers best describes the router's logic that tells the router, for a given packet, to apply GRE encapsulation to the packet?()
第2题:
Which statement is true for the class java.util.HashSet? ()
第3题:
1. class Test { 2. private Demo d; 3. void start() { 4. d = new Demo(); 5. this.takeDemo(d); 6. } 7. 8. void takeDemo(Demo demo) { 9. demo = null; 10. demo = new Demo(); 11. } 12. } When is the Demo object, created on line 3, eligible for garbage collection?()
第4题:
Given a correctly compiled class whose source code is: package com.sun.sjcp; public class Commander { public static void main(String[] args) { // more code here } } Assume that the class file is located in /foo/com/sun/sjcp/, the current directory is /foo/, and that the classpath contains “.“ (current directory). Which command line correctly runs Commander?()
第5题:
Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo() method, which two statements are true?()
第6题:
You are creating a Windows Communication Foundation (WCF) service. The service endpoints change frequently. On the service, you add a new ServiceDiscoveryBehavior to the Behaviors collection of the ServiceHost Description property. You need to ensure that client applications can communicate with the service and discover changes to the service endpoints. What should you do?()
第7题:
Which property of the ListView class is used to get/set the name of the data field whose value exclusively identifes every data row of a ListView when the ClientIDMode property is set to Predictable?()
第8题:
(As it is now)
When he was Lisa, Reynolds found that it was a second-class existence for a woman seeking work in the world.
Although as Lisa, Reynolds felt it is a second-class world to be a woman looking for a job.
Reynolds as Lisa experienced the second-class world of female job applicants.
In Reynolds’s opinion, he felt as Lisa that it is a second-class world for female job applicants.
第9题:
A user whose role is Admin can perform a PUT.
A user whose role is Admin can perform a GET.
A user whose role is Admin can perform a POST.
A user whose role is Member can perform a PUT.
A user whose role is Member can perform a POST.
A user whose role is Member can perform a GET.
第10题:
After line 5.
After line 9.
After the start() method completes.
When the takeDemo() method completes.
When the instance running this code is made eligible for garbage collection.
第11题:
There are no instanced of A that will become eligible for garbage collection.
Explicitly setting myA to null marks that instance to be eligible for garbage collection.
Any call on tryIt() causes the private instance of A to be marked for garbage collection.
Private instances of A become eligible for garbage collection when instances of Alpha become eligible for garbage collection.
第12题:
The hashCode method for a given class can be used to test for object equality and object inequality for that class.
The hashCode method is used by the java.util.SortedSet collection class to order theelements within that set.
The hashCode method for a given class can be used to test for object inequality, but NOT object equality, for that class.
The only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.
The hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.
第13题:
Which two statements are true about the hashCode method?()
第14题:
You work as an application developer at Certkiller .com. Certkiller .com has been hired by a small local private school to develop a class library that will be used in an application named ManageAttendance for the purpose of managing student records.You are responsible for developing this class library. Certkiller .com has instructed you to create a collection in the application to store learners’ results. The school has informed you that they currently only have seven learners, but that this value will triple in the following year. Due to the limited resources, you need to ensure that the collection you create consumes a minimum amount of resources. What should you use to create the collection?()
第15题:
Which statements concerning the methods notify() and notifyAll() are true?
第16题:
Given the following code: public class Person{ int arr[] = new int[10]; public static void main(String a[]) { System.out.println(arr[1]); } } Which statement is correct?()
第17题:
When an ASM instance receives a SHUTDOWN NORMAL command,what command does it pass on to all database instances that rely on the ASM instances disk groups?()
第18题:
You work as an application developer at Certkiller .com. Certkiller .com has been contracted to develop an application for the local bank.You have been given the responsibility of creating this application and need to store each transaction record, which is identified using a complex transaction identifier,in memory. The bank informs you that the total amount of transaction records could reach 200 per day. To achieve this, you decide to utilize one of the existing collection classes in the .NET 2.0 class library. You need to ensure that you the collection class you select is the most efficient one for storing transaction records.What should you do?()
第19题:
You work as an application developer at Certkiller .com. You have recently created a custom collection class named ShoppingList for a local supermarket. This custom class will include ShoppinItem objects that have the public properties listed below. * Name * AisleNumber * OnDiscount You are required to enable users of your class to iterate through the ShoppingList collection, and to list each product name and aisle number using the foreach statement.You need to achieve this by declaring the appropriate code.What code should you use?()
第20题:
When compilation some error will occur.
It is correct when compilation but will cause error when running.
The output is zero.
The output is null.
第21题:
Line 5
Line 6
Line 7
Line 8
Line 9
Line 10
第22题:
The elements in the collection are ordered.
The collection is guaranteed to be immutable.
The elements in the collection are guaranteed to be unique.
The elements in the collection are accessed using a unique key.
The elements in the collections are guaranteed to be synchronized.
第23题:
When compilation some error will occur.
It is correct when compilation but will cause error when running.
The output is zero.
The output is null.