网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Given two collection objects referenced by col1 and col2,which of these statements are true?()
- A、The operation col1.retainAll(col2) will not modify the col1 object.
- B、The operation col1.removeAll(col2) will not modify the col2 object.
- C、The operation col1.addAll(col2) will return a new collection object, containing elements from both col1 and col2.
- D、The operation col1.containsAll(Col2) will not modify the col1 object.
参考答案
更多 “Given two collection objects referenced by col1 and col2,which of these statements are true?()A、The operation col1.retainAll(col2) will not modify the col1 object.B、The operation col1.removeAll(col2) will not modify the col2 object.C、The operation col1.addAll(col2) will return a new collection object, containing elements from both col1 and col2.D、The operation col1.containsAll(Col2) will not modify the col1 object.” 相关考题
考题
He used to have a ____of stamp-collection, but he has given it up.
A.habitB.hobbyC.customD.like
考题
The collecting bank only acts upon the instructions given in the collection order of the presenting bank.A.RightB.WrongC.Doesn't say
考题
The two words" collaborator" and "accomplice" are examples given to illustrate that synonyms may differ._____.
A in styleB in their emotive or evaluative meaningC in their collocationD slightly in what they mean
考题
Given:When the doSomething method is called, after which line does the Object created in line 5 become available for garbage collection?()
A.Line 5B.Line 6C.Line 7D.Line 8E.Line 9F.Line 10
考题
Which two statements are true about the hashCode method?()A、 The hashCode method for a given class can be used to test for object equality and object inequality for that class.B、 The hashCode method is used by the java.util.SortedSet collection class to order theelements within that set.C、 The hashCode method for a given class can be used to test for object inequality, but NOT object equality, for that class.D、 The only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.E、 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.
考题
You need to store elements in a collection that guarantees that no duplicates are stored. Which two interfaces provide that capability?()A、 Java.util.MapB、 Java.util.SetC、 Java.util.ListD、 Java.util.StoredSetE、 Java.util.StoredMapF、 Java.util.Collection
考题
Which of the following RAID levels would be appropriate given two drives and a need for fault tolerance?()A、RAID 0B、RAID 1C、RAID 5D、RAID 10
考题
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.
考题
Which of these statements concerning the collection interfaces are true?() A、Set extends Collection.B、All methods defined in Set are also defined in Collection.C、List extends Collection.D、All methods defined in List are also defined in Collection.E、Map extends Collection.
考题
Which two PL/SQL8 features are supported in Oracle Forms?()A、methods B、object tables C、object columns D、collection types E、object as stored procedure parameters
考题
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?()A、 Select the ListDictionary collection class.B、 Select the HashTable collection class.C、 Select the Queue collection class.D、 Select the StringCollection collection class.
考题
多选题Which two interfaces provide the capability to store objects using a key-value pair?()AJava.util.Map.BJava.util.Set.CJava.util.List.DJava.util.StoredSet.EJava.util.StoredMap.FJava.util.Collection.
考题
多选题Which two statements are true about the security-related tags in a valid Java EE deployment descriptor?()AEvery tag must have at least one tag.BA tag can have many tags.CA given tag can apply to only one tag.DA given tag can contain from zero to many tags.EIt is possible to construct a valid tag such that,for a given resource,no user rolescan access that resource.
考题
多选题Given two collection objects referenced by col1 and col2,which of these statements are true?()AThe operation col1.retainAll(col2) will not modify the col1 object.BThe operation col1.removeAll(col2) will not modify the col2 object.CThe operation col1.addAll(col2) will return a new collection object, containing elements from both col1 and col2.DThe operation col1.containsAll(Col2) will not modify the col1 object.
考题
单选题1. import java.util.*; 2. public class TestSet { 3. enum Example { ONE, TWO, THREE } 4. public static void main(String[] args) { 5. Collection coll = new ArrayList(); 6. coll.add(Example.THREE); 7. coll.add(Example.THREE); 8. coll.add(Example.THREE); 9. coll.add(Example.TWO); 10. coll.add(Example.TWO); 11. coll.add(Example.ONE); 12. Set set = new HashSet(coll); 13. } 14. } Which statement is true about the set variable on line 12?()A
The set variable contains all six elements from the coll collection, and the order is guaranteed to be preserved.B
The set variable contains only three elements from the coll collection, and the order is guaranteed to be preserved.C
The set variable contains all six elements from the coil collection, but the order is NOT guaranteed to be preserved.D
The set variable contains only three elements from the coil collection, but the order is NOT guaranteed to be preserved.
考题
单选题Given: When the doSomething method is called, after which line does the Object created in line 5 become available for garbage collection?()A
Line 5B
Line 6C
Line 7D
Line 8E
Line 9F
Line 10
考题
多选题You need to store elements in a collection that guarantees that no duplicates are stored. Which two interfaces provide that capability?()AJava.util.MapBJava.util.SetCJava.util.ListDJava.util.StoredSetEJava.util.StoredMapFJava.util.Collection
考题
多选题Which of these statements concerning the collection interfaces are true?()ASet extends Collection.BAll methods defined in Set are also defined in Collection.CList extends Collection.DAll methods defined in List are also defined in Collection.EMap extends Collection.
考题
多选题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.
考题
单选题Given: Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbage collection?()A
Line 16B
Line 17C
Line 18D
Line 19
考题
单选题You work in a company which is named Wiikigo Corp. The company uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance. You are going to use the data collector to gather performance data periodically on all instances. You must store all collected data in the same database. This database is hosted on a single instance. Every five hours, you have to collect and load performance data in the management data warehouse. Which data collection process should you implement? ()A
You should create a cached data collection B
You should create an on-demand non-cached data collection C
You should create a scheduled non-cached data collection. D
You should create two different SQL Agent jobs. The two jobs are scheduled at the same time. One job uploads the data collection and the other job creates a data collection.
考题
多选题class A { } class Alpha { private A myA = new A(); void dolt( A a ) { a = null; } void tryIt() { dolt( myA ); } } Which two statements are correct?()AThere are no instanced of A that will become eligible for garbage collection.BExplicitly setting myA to null marks that instance to be eligible for garbage collection.CAny call on tryIt() causes the private instance of A to be marked for garbage collection.DPrivate instances of A become eligible for garbage collection when instances of Alpha become eligible for garbage collection.
考题
多选题Oracle JRockit JVM uses -Xns option to set nursery size when the generational garbage collection mode is used. Which two JVM properties are affected by changing its size ?()Acompaction ratio limitBgarbage collection frequencyCgarbage collection timesDfragmentation heap size
考题
多选题Which two statements are true about the hashCode method?()AThe hashCode method for a given class can be used to test for object equality and object inequality for that class.BThe hashCode method is used by the java.util.SortedSet collection class to order theelements within that set.CThe hashCode method for a given class can be used to test for object inequality, but NOT object equality, for that class.DThe only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.EThe hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.
考题
单选题Initially, for the Automatic Workload Repository (AWR) statistics,the retention period is set to 7 days, the collection interval is set to 30 minutes and the collection level is set to Typical in your production database. You have been using the Memory Advisor for the last three months to generate recommendations for tuning memory components. However,when you observe the Memory Advisor on a Friday,you find that the statistics are available only for two days, Thursday and Friday,of that week. What would have caused the statistics to be removed?()A
On Wednesday, the statistics have been purged.B
On Wednesday, the retention period has been set to zero.C
On Wednesday, the collection interval has been set to zero.D
On Wednesday, the collection level has been changed to All.E
On Wednesday, the retention period has been set to one day.F
On Wednesday, the retention period has been set to two daysG
On Wednesday, the collection level has been changed to Typical.H
On Wednesday, the collection interval has been set to 1440 minutes.
热门标签
最新试卷