Which code fragments will succeed in initializing a two-dimensional array named tab with a size that will cause the expression tab[3][2] to access a valid element?() CODE FRAGMENT a: int[][] tab = { { 0, 0, 0 }, { 0, 0, 0 } }; CODE FRAGMENT b: int tab[][] = new int[4][]; for (int i=0; i CODE FRAGMENT c: int tab[][] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; CODE FRAGMENT d: int tab[3][2]; CODE FRAGMENT e: int[] tab[] = { {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0} };
第1题:
第2题:
You are creating a new JSP page and you need to execute some code that acts when the page is firstexecuted, but only once. Which three are possible mechanisms for performing this initialization code?()
第3题:
If a vessel subject to PSC inspection, PSC Officer shall give the inspection to the Captain, the given timeframe for rectification of each deficiency is commonly given in a coded form which called “action code”, which code listed below is used for indication of detention of the vessel?()
第4题:
Which of the following performance tools will work with optimized code and also provides source statement profiling?()
第5题:
In your Certkiller .com database server the parameter PLSQL_CODE_TYPE has been set to NATIVE. Which object would be achieved by the setting?()
第6题:
The source PL/SQL code will be stored in native machine code.
The source PL/SQL code will be stored in interpreted byte code.
The compiled PL/SQL code will be stored in native machine code.
The compiled PL/SQL code will be stored in interpreted byte code.
第7题:
public void foo() { /* more code here */ }
private void foo() { /* more code here */ }
protected void foo() { /* more code here */ }
int foo() { /* more code here */ }
void foo() { /* more code here */ }
第8题:
The instance gets garbage collected.
The code on line 33 throws an exception.
The code on line 35 throws an exception.
The code on line 31 throws an exception.
The code on line 33 executes successfully.
第9题:
A
B
C
D
第10题:
char ch = 65;
char ch = ’¥65’;
char ch = ’¥0041’;
char ch = ’A’;
char ch = A;
第11题:
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 */}
第12题:
A
B
C
D
E
F
第13题:
class One { void foo() {} } class Two extends One { //insert method here } Which three methods, inserted individually at line 14, will correctly complete class Two?()
第14题:
31. // some code here 32. try { 33. // some code here 34. } catch (SomeException se) { 35. // some code here 36. } finally { 37. // some code here 38. } Under which three circumstances will the code on line 37 be executed?()
第15题:
Acceptance of deliverables to multiple locations requires which type of sign off?()
第16题:
Which command should the administrator use to display the IPL progress/LED code of the partition?()
第17题:
Which three will compile and run without exception?()
第18题:
The source PL/SQL code will be stored in native machine code.
The source PL/SQL code will be stored in interpreted byte code.
The compiled PL/SQL code will be stored in native machine code.
The compiled PL/SQL code will be stored in interpreted byte code.
第19题:
int foo() { /* more code here */ }
void foo() { /* more code here */ }
public void foo() { /* more code here */ }
private void foo() { /* more code here */ }
protected void foo() { /* more code here */ }
第20题:
int foo() { /* more code here */ }
void foo() { /* more code here */ }
public void foo() { /* more code here */ }
private void foo() { /* more code here */ }
protected void foo() { /* more code here */ }
第21题:
In the init method.
In the jspInit method.
In the constructor of the JSP’s Java code.
In a JSP declaration, which includes an initializer block.
In a JSP declaration, which includes a static initializer block.
第22题:
This code is NOT thread-safe.
The programmer can replace StringBuffer with StringBuilder with no other changes.
This code will perform well and converting the code to use StringBuilder will not enhance the performance.
This code will perform poorly. For better performance, the code should be rewritten: return “<“+ this.name + “>”;
第23题:
Command
Transfer Object
Service Locator
Session Facade
Business Delegate