reviewer5

723 0 0
                                    

D) Compilation fails due to an error on line 3

E) Compilation fails due to an error on line 5

F) Compilation fails due to an error on line 6

62.

Given the command line:

java -showversion ShowVersion ShowVERSION SHOWVERSION

Which three are true? (Choose three.)

A) This is a legal invocation

B) This is a illegal invocation

C) This invocation contains one option.

D) This invocation contains two options.

E) This invocation contains one argument

F) This invocation contains two arguments.

63.

Given:

1. import java.util.*;

2. class Pow {

3. static String [] wow = {"Bamm", "Biff"};

4. public static void main(String [] yikes) {

5. if(Arrays.equals(yikes,wow))

6. System.out.print("got a match? ");

7. if(yikes == wow)

8. System.out.println("sure chief");

9. }

10. }

And the command line:

java Pow Bamm Biff

What is the result?

A) got a match?

B) Compilation fails.

C) No output is produced .

D) got a match? sure chief

E) An exception is thrown at runtime.

64.

Given:

1. class Wrench {

2. public static void main(String [] args) {

3. Wrench w = new Wrench(); Wrench w2 = new Wrench();

4. w2 = go(w,w2);

5. System.out.print(w2 == w);

6. }

7. static Wrench go(Wrench wr1, Wrench wr2) {

8. Wrench wr3 = wr1; wr1 = wr2; wr2 = wr3;

9. return wr3;

10. }

11. }

What is the result?

A) true

B) false

C) Compilation fails.

D) The output is unpredictable

E) An exception is thrown at runtime.

65.

Given:

1. class Passer {

2. static final int x = 5;

3. public static void main(String [] args) {

4. new Passer().go(x);

5. System.out.print(x);

6. }

Naabot mo na ang dulo ng mga na-publish na parte.

⏰ Huling update: Jun 23, 2010 ⏰

Idagdag ang kuwentong ito sa iyong Library para ma-notify tungkol sa mga bagong parte!

reviewer5Tahanan ng mga kuwento. Tumuklas ngayon