网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
多选题
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?()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.” 相关考题
考题
The following statements:CREATE TABLE t1 (col1 INT NOT NULL, PRIMARY KEY(col1)); CREATE TABLE t2 (col1 INT NOT NULL, col2 CHAR(1) NOT NULL, PRIMARY KEY (col1, col2), FOREIGN KEY (col1) REFERENCES t1 (col1) ON DELETE CASCADE ON UPDATE RESTRICT); CREATE TABLE t3 (col1 INT NOT NULL, col2 INT NOT NULL, PRIMARY KEY (col1, col2),FOREIGN KEY (col1) REFERENCES t1 (col1) ON DELETE NO ACTION ON UPDATE RESTRICT);INSERT INTO t1 VALUES (1), (2); INSERT INTO t2 VALUES (1, ‘a‘), (1, ‘b‘), (2,‘c‘); INSERT INTO t3 VALUES (1, 100), (2, 200), (2,300);How many rows will be deleted by the following DELETE statement? DELETE FROM t1 WHERE col1= 1;()A.4B.3C.1D.0
考题
客服业务受到SQL语句的影响非常大,以下哪些是执行效率比较低的SQL语句,可以进行优化()A、select*from record where substrb(CardNo,1,4)=’5378’;B、表tab1中的列col1是字符型(char),执行select col1,col2 from tab1 where col1’10’;C、select count(*)from stuff where id_no in(’0’,’1’);D、UPDATE SERVICEINFO SET STATE=0WHERE STATE0。
考题
If a unique constraint is defined on column COL1 of table TAB1, what are the characteristics of COL1?()A、COL1 will accept NULL values and can be referenced in another table's foreign key specification.B、COL1 will not accept NULL values and cannot be referenced in another tables foreign key specification.C、COL1 will not accept NULL values and can be referenced in another tables foreign key specification.D、COL1 will accept NULL values and cannot be referenced in another tables foreign key specification.
考题
1. class TestA { 2. TestB b; 3. TestA() { 4. b = new TestB(this); 5. } 6. } 7. class TestB { 8. TestA a; 9. TestB(TestA a) { 10. this.a = a; 11. } 12. } 13. class TestAll { 14. public static void main (String args[]) { 15. new TestAll().makeThings(); 16. // ...code continues on 17. } 18. void makeThings() { 19. TestA test = new TestA(); 20. } 21. } Which two statements are true after line 15, before main completes?()A、 Line 15 causes a stack overflow.B、 An exception is thrown at runtime.C、 The object referenced by a is eligible for garbage collection.D、 The object referenced by b is eligible for garbage collection.E、 The object referenced by a is not eligible for garbage collection.F、 The object referenced by b is not eligible for garbage collection.
考题
Given that Thing is a class, how many objects and reference variables are created by the following code?() Thing item, stuff; item = new Thing(); Thing entity = new Thing();A、One object is createdB、Two objects are createdC、Three objects are createdD、One reference variable is createdE、Two reference variables are createdF、Three reference variables are created.
考题
对于表A(col1 int,col2 char(1)),表B(col1 int,col2char(1)),为确保表A的数据全部被保留,下面正确的联接方式是()A、A inner join BB、A left join BC、A right join BD、Across join B
考题
对于表A(col1 int,col2 char(1))更新col1=1的数据col2值为N,下面语句正确的是()A、update table A setcol2=’N’ where col1=1B、modify table A setcol2=N where col1=1C、update A set col2=’N’ where col1=1D、modify A set col2=N where col1=1
考题
存在两个结构相同的数据库表T1(col1,col2,col3)、T2(col1,col2,col3),写出一SQL语句将所有T1数据导入到T2表()A、select col1,col2,col3 from T1 into T2(col1,col2,col3)B、insert T1 (col1,col,col3) into T2(col1,col2,col3)C、insert into T2 (col1,col2,col3) as select col1,col2,col3 from T1D、insert into T2(col1,col2,col3) select col1,col2,col3 from T1;
考题
Which of the following DB2 objects are publicly referenced names that require no special authority or privilege to use them?()A、ViewB、AliasC、TableD、Package
考题
Which two interfaces provide the capability to store objects using a key-value pair?()A、 Java.util.Map.B、 Java.util.Set.C、 Java.util.List.D、 Java.util.StoredSet.E、 Java.util.StoredMap.F、 Java.util.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?()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.
考题
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.
考题
Which statement is true?()A、A class’s finalize() method CANNOT be invoked explicitly.B、super.finalize() is called implicitly by any overriding finalize() method.C、The finalize() method for a given object is called no more than once by the garbage collector.D、The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.
考题
单选题对于表A(col1 int,col2 char(1)),表B(col1 int,col2char(1)),为确保表A的数据全部被保留,下面正确的联接方式是()A
A inner join BB
A left join BC
A right join BD
Across join B
考题
单选题If a unique constraint is defined on column COL1 of table TAB1, what are the characteristics of COL1?()A
COL1 will accept NULL values and can be referenced in another table's foreign key specification.B
COL1 will not accept NULL values and cannot be referenced in another tables foreign key specification.C
COL1 will not accept NULL values and can be referenced in another tables foreign key specification.D
COL1 will accept NULL values and cannot be referenced in another tables foreign key specification.
考题
多选题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.
考题
单选题11. class Snoochy { 12. Boochybooch; 13. public Snoochy() { booch = new Boochy(this); } 14. } 15. 16. class Boochy { 17. Snoochy snooch; 18. public Boochy(Snoochy s) { snooch = s; } 19. } And the statements: 21. public static void main(String[] args) { 22. Snoochy snoog = new Snoochy(); 23. snoog = null; 24. // more code here 25. } Which statement is true about the objects referenced by snoog, snooch, and booch immediately after line 23 executes?()A
None of these objects are eligible for garbage collection.B
Only the object referenced by booch is eligible for garbage collection.C
Only the object referenced by snoog is eligible for garbage collection.D
Only the object referenced by snooch is eligible for garbage collection.E
The objects referenced by snooch and booch are eligible for garbage collection.
考题
多选题Which two are true?()AA finalizer may NOT be invoked explicitly.BThe finalize method declared in class Object takes no action.Csuper.finalize()is called implicitly by any over riding finalize method.DThe finalize method for a given objec twill be called no more than once by the garbage collector.EThe order in which finalize will be called on two objects is based on the order in which the two objects became finalizable.
考题
单选题Which statement is true?()A
A class’s finalize() method CANNOT be invoked explicitly.B
super.finalize() is called implicitly by any overriding finalize() method.C
The finalize() method for a given object is called no more than once by the garbage collector.D
The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.
考题
多选题1. class TestA { 2. TestB b; 3. TestA() { 4. b = new TestB(this); 5. } 6. } 7. class TestB { 8. TestA a; 9. TestB(TestA a) { 10. this.a = a; 11. } 12. } 13. class TestAll { 14. public static void main (String args[]) { 15. new TestAll().makeThings(); 16. // ...code continues on 17. } 18. void makeThings() { 19. TestA test = new TestA(); 20. } 21. } Which two statements are true after line 15, before main completes?()ALine 15 causes a stack overflow.BAn exception is thrown at runtime.CThe object referenced by a is eligible for garbage collection.DThe object referenced by b is eligible for garbage collection.EThe object referenced by a is not eligible for garbage collection.FThe object referenced by b is not eligible for garbage collection.
考题
多选题Which three firewall user authentication objects can be referenced in a security policy? ()(Choose three.)Aaccess profileBclient groupCclientDdefault profileEexternal
考题
多选题Which two firewall user authentication objects can be referenced in a security policy?()Aaccess profileBclient groupCclientDdefault profile
考题
多选题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.
考题
多选题Which of the following objects can be directly referenced by a window object? ()ASchedule objectBProgram objectCJob objectDResource planEResource consumer group
考题
单选题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
考题
单选题The following statements: CREATE TABLE t1 (col1 INT NOT NULL, PRIMARY KEY(col1)); CREATE TABLE t2 (col1 INT NOT NULL, col2 CHAR(1) NOT NULL, PRIMARY KEY (col1, col2), FOREIGN KEY (col1) REFERENCES t1 (col1) ON DELETE CASCADE ON UPDATE RESTRICT); CREATE TABLE t3 (col1 INT NOT NULL, col2 INT NOT NULL, PRIMARY KEY (col1, col2),FOREIGN KEY (col1) REFERENCES t1 (col1) ON DELETE NO ACTION ON UPDATE RESTRICT);INSERT INTO t1 VALUES (1), (2); INSERT INTO t2 VALUES (1, 'a'), (1, 'b'), (2,'c'); INSERT INTO t3 VALUES (1, 100), (2, 200), (2,300); How many rows will be deleted by the following DELETE statement? DELETE FROM t1 WHERE col1= 1;()A
4B
3C
1D
0
考题
单选题11.class Snoochy{ 12.Boochybooch; 13.public Snoochy(){booch=newBoochy(this);} 14.} 15. 16.class Boochy{ 17.Snoochy snooch; 18.public Boochy(Snoochys){snooch=s;} 19.} And the statements: 21.public static void main(String[]args){ 22.Snoochy snoog=new Snoochy(); 23.snoog=null; 24.//more code here 25.} Which statement is true about the objects referenced by snoog,snooch,and booch immediately after line 23 executes?()A
None of these objects are eligible for garbage collection.B
Only the object referenced by booch is eligible for garbage collection.C
Only the object referenced by snoog is eligible for garbage collection.D
Only the object referenced by snooch is eligible for garbage collection.E
The objects referenced by snooch and booch are eligible for garbage collection.
热门标签
最新试卷