Which two, inserted at line 11, will allow the code to compile?()
A: public class MinMax<?>{
B: public class MinMax<? extends Number>{
C: public class MinMax{
D: public class MinMax{
E: public class MinMax<? extends Object>{
F: public class MinMax{
A: public class MinMax<?>{
B: public class MinMax<? extends Number>{
C: public class MinMax
D: public class MinMax
E: public class MinMax<? extends Object>{
F: public class MinMax
举一反三
- Given: Which two, inserted at line 11, will allow the code to compile?() A: public&ensp;class&ensp;MinMax<;?>;&ensp;{ B: public&ensp;class&ensp;MinMax<;?extends&ensp;Number>;&ensp;{ C: public&ensp;class&ensp;MinMax<;Nextends&ensp;Object>;&ensp;{ D: public&ensp;class&ensp;MinMax<;Nextends&ensp;Number>;&ensp;{ E: public&ensp;class&ensp;MinMax<;?extends&ensp;Object>;&ensp;{ F: public&ensp;class&ensp;MinMax<;Nextends&ensp;Integer>;&ensp;{
- 下列哪些是合法的类定义语句 A: public class A {} B: class A extends Exception,I0Exception {} C: public class 1A extends Object D: public class String {}
- Which two demonstrate an “is a” relationship? () A: public interface Person{} public class Employee extends Person{} B: public interface Shape{} public class Employee extends Shape{} C: public interface Color{} public class Employee extends Color{} D: public class Species{} public class Animal (private Species species;) E: interface Component{} Class Container implements Component ( Private Component[ ] children; )
- 假设C和D是接口,下列定义哪个是正确的() A: public class A implements C,D{ } B: public class A implements C implements D{ } C: public class A extends C,D{ } D: public class A extends C extends D{ }
- 下列类的定义中,错误的是() A: class x{....} B: public x extends y{...} C: public class x extends y{....} D: class x extends y implements yl{....}