A programmer must create a generic class MinMax and the type parameter of MinMax must implement Comparable. Which implementation of MinMax will compile?()
A、 A
B、 B
C、 C
D、 D
相关问题推荐
-
Which two are equivalent?()
A3/2
B3<2
C3*4
D3<<2
E3*2^2
F3<<<2
-
A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command: java games.cards.Poker What allows the user to do this?()
A、put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java
B、put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/*.jar
C、Put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/Poker.jar
D、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java
E、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/*.jar
F、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/Poker.jar
-
Which statement is true?()
A、 If only one thread is blocked in the wait method of an object, and another thread executes the modify on that same object, then the first thread immediately resumes execution.
B、 If a thread is blocked in the wait method of an object, and another thread executes the notify method on the same object, it is still possible that the first thread might never resume execution.
C、 If a thread is blocked in the wait method of an object, and another thread executes the notify method on the same object, then the first thread definitely resumes execution as a direct and sole consequence of the notify call.
D、 If two threads are blocked in the wait method of one object, and another thread executes the notify method on the same object, then the first thread that executed the wait call first definitely resumes execution as a direct and sole consequence of the notify call.
-
What is the result?()
A、 Cat
B、 Dog
C、 Compilation fails.
D、 The code runs with no output.
E、 An exception is thrown at runtime.
-
Which&ensp;can&ensp;be&ensp;used&ensp;to&ensp;encode&ensp;charS&ensp;for&ensp;output?()
A、 Java.io.OutputStream.
B、 Java.io.OutputStreamWriter.
C、 Java.io.EncodeOutputStream.
D、 Java.io.EncodeWriter.
E、 Java.io.BufferedOutputStream.