多项选择题

Which four statments are true?()

A.Raccoon is-a Mammal.
B.Raccoon has-a Mammal.
C.BabyRaccoon is-a Mammal.
D.BabyRaccoon is-a Raccoon.
E.BabyRaccoon has-a Mammal.
F.BabyRaccoon is-a BabyRaccoon.


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

What is the result?()

A.foofoofoofoofoo
B.foobarfoobarbar
C.foobarfoofoofoo
D.foobarfoobarfoo
E.barbarbarbarbar
F.foofoofoobarbar
G.foofoofoobarfoo

2.单项选择题

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.

3.单项选择题

What is the result?()

A.An exception is thrown at runtime.
B.Compilation fails because of an error in line 7.
C.Compilation fails because of an error in line 4.
D.Compilation succeeds and no runtime errors with class A occur.

4.单项选择题

What is the result?()

A.13
B.134
C.1234
D.2134
E.2143
F.4321

5.多项选择题

Which three methods, inserted individually at line 14, will correctly complete class Two?()

A.int foo(){/* more code here */}
B.void foo(){/* more code here */}
C.public void foo(){/* more code here */}
D.private void foo(){/* more code here */}
E.protected void foo(){/* more code here */}

6.多项选择题

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

7.单项选择题

What is the result?()

A.420 is the output.
B.An exception is thrown at runtime.
C.All constructors must be declared public.
D.Constructors CANNOT use the private modifier.
E.Constructors CANNOT use the protected modifier.

9.单项选择题

What is the result?()

A.Compilation fails.
B.An exception is thrown at runtime.
C.doStuff x=6,main x=6
D.doStuff x=5,main x=5
E.doStuff x=5,main x=6
F.doStuff x=6,main x=5

10.单项选择题

What is the result?()

A.81
B.82
C.91
D.92
E.Compilation fails.
F.An exception is thrown at runtime.

最新试题

What is the result?()

题型:单项选择题

Given that Triangle implements Runnable, and:Which two statements, inserted independently at both lines 35 and 41, tend to allow both threads to temporarily pause and allow the other thread to execute?()

题型:多项选择题

Which two are possible results?()

题型:多项选择题

Which statement is true?()

题型:单项选择题

What is the result?()

题型:单项选择题

Which statement is true about the set variable on line 12?()

题型:单项选择题

A programmer is developing a class Key, that will be used as a key in a standard java.util.HashMap.  Which two methods should be overridden to assure that Key works correctly as a key?()

题型:多项选择题

Which three changes should be made to adapt this class to be used safely by multiple threads?()

题型:多项选择题

A programmer must create a generic class MinMax and the type parameter of MinMax must implement Comparable. Which implementation of MinMax will compile?()

题型:单项选择题

Given:  foo and bar are public references available to many other threads, foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait().  From another thread, what provides the most reliable way to ensure that foo will stop executing wait()?()

题型:单项选择题