equal
not equal
exception
Compilation fails.
第1题:
当执行下面代码时,会输出( )。 Boolean b1 = new Boolean(true); Boolean b2 = new Boolean(true); if (b1 == b2) if (bi.equals(b2)) System. out.printin ("a"); else System. out. println ("b"); else if (bi.equals(b2)) System. out.println ("c"); else System. out.printIn("d");
A.a
B.b
C.c
D.d
第2题:
创建一个对象obj,该对象包含一个名为"name"的属性,其值为"value"。以下哪一段JavaScript代码无法得到上述的结果?()
第3题:
10. public Object m() { 11. Object o = new Float(3.14F); 12. Object [] oa = new Object[1]; 13. oa[0] = o; 14. o = null; 15. return oa[0]; 16. } When is the Float object, created in line 11, eligible for garbage collection?()
第4题:
String s=new String("xyz");创建了几个String Object?
第5题:
try { if ((new Object))(.equals((new Object()))) { System.out.println(“equal”); }else{ System.out.println(“not equal”); } }catch (Exception e) { System.out.println(“exception”); } What is the result? ()
第6题:
You are developing an application to create a new file on the local file system.You need to define specific security settings for the file. You must deny the file inheritance of any default security settings during creation.What should you do?()
第7题:
A new Item object is created with the preferred value in the id attribute.
The attribute id in the Item object is modified to the new value.
Compilation fails.
An exception is thrown at runtime.
The attribute id in the Item object remains unchanged.
第8题:
Configure the software restriction policy in the Default Domain Policy Group Policy object (GPO)
Create a new connection object by using the Connection Manager Administration Kit (CMAK), and install the new connection object on all client computers
Create and configure a local security policy on both of the ISA server computers
Configure the Internet Explorer settings in the Default Domain Policy Group Policy object (GPO)
第9题:
Create the file by using a new FileStream object by passing the FileSecurity object as a parameter to the FileStream constructor.
Create a new FileSecurity object.
Apply the permissions by using the File class.
Create a new FileSystem Access Rule object for each permission that you need,and add each rule to the FileSecurity object.
Create a new FileSystem Audit Rule object and add it to the FileSecurity object.
第10题:
Just after line 5
Just after line 6
Just after line 7 (that is, as the method returns)
Never in this method.
第11题:
hashCode() and equals() method for each object type is different so a different key is used
each object value string is different so a different value is inserted on each put
equals() and compare() method is different for each put
POF need to be implemented for this to work properly
第12题:
private synchronized Object o;
void go(){ synchronized(){/* code here */}
public synchronized void go(){/* code here */}
private synchronized(this) void go(){/* code here */}
void go(){ synchronized(Object.class){/* code here */}
void go(){ Object o = new Object(); synchronized(o){/* code here */}
第13题:
public class X { public object m () { object o = new float (3.14F); object oa = new object [1]; oa[0]= o; o = null; return oa[0]; } } When is the float object created in line 3, eligible for garbage collection?()
第14题:
class Sock2 { String color; public boolean equals(Object o) { return color.equals(((Sock2)o).color); } } class TestSocks { public static void main(String [] args) { Sock2 s1 = new Sock2(); s1.color = "blue"; Sock2 s2 = new Sock2(); s2.color = "blue"; if (s1.equals(s2)) System.out.print("equals "); if (s1 == s2) System.out.print("== "); } } 结果为:()
第15题:
欲构造ArrayList类的一个实例,此类继承了List接口,下列哪个方法是正确的?()
第16题:
1. public class X ( 2. public object m () { 3. object o = new float (3.14F); 4. object [] oa = new object [1]; 5. oa[0]= o; 6. o = null; 7. return oa[0]; 8. } 9. } When is the float object created in line 3, eligible for garbage collection?()
第17题:
You are the network administrator for The network consists of a single Active Directory domain named All network servers run Windows Server 2003. A member server named TK1 contains a large number of files that are frequently accessed by network users. Users report unacceptable response times on TK1. You compare the current performance of TK1 to a system performance baseline that you created several weeks ago. You decide that TK1 needs a higher-performance network adapter. After you add the appropriate network adapter, users report satisfactory performance. You need to gather new server performance data so you can establish a new performance baseline for TK1. You open the Performance console. What should you do next?()
第18题:
Just after line 5.
Just after line 6.
Just after line 7.
Just after line 8(that is, as the method returns).
第19题:
Line5
Line6
Line7
Line8
Line9
Line10
第20题:
第21题:
Just after line 5
Just after line 6
Just after line 7 (that is, as the method returns)
Never in this method.
第22题:
==
equals
equals ==
无结果输出
第23题:
Line 5
Line 6
Line 7
Line 8
Line 9
Line 10
第24题:
equal
not equal
exception
Compilation fails.