问答题

DRAG DROP Click the Task button.


您可能感兴趣的试卷

你可能感兴趣的试题

6.多项选择题

Click the Exhibit button. Which three code fragments, added individually at line 29, produce the output 100?()

A.n = 100;
B.i.setX( 100 );
C.o.getY().setX( 100 );
D.i = new Inner(); i.setX( 100 );
E.o.setY( i ); i = new Inner(); i.setX( 100 );
F.i = new Inner(); i.setX( 100 ); o.setY( i );

7.单项选择题

Given:

What is the result?()

A.Compilation fails.
B.exception is thrown at runtime.
C.The attribute id in the ItemTest object remains unchanged.
D.The attribute id in the ItemTest object is modified to the new value.
E.A new ItemTest object is created with the preferred value in the id attribute.

8.多项选择题Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?()

A.When using versions of Java technology earlier than 5.0.
B.When sharing a StringBuffer among multiple threads.
C.When using the java.io class StringBufferInputStream.
D.When you plan to reuse the StringBuffer to build more than one string.

9.单项选择题

Click the Exhibit button. What is the result? ()

A.Value is: 8
B.Compilation fails.
C.Value is: 12
D.Value is: -12
E.The code runs with no output.
F.An exception is thrown at runtime.

10.多项选择题

Given:

Which three are true?()

A.Cat is-a Animal
B.Cat is-a Jumper
C.Dog is-a Animal
D.Dog is-a Jumper
E.Cat has-a Animal
F.Beagle has-a Tail
G.Beagle has-a Jumper