单项选择题
Give;
What is the result?()
A.b3
B.b8
C.b13
D.f3
E.f8
F.f13
G.Compilation fails.
H.An exception is thrown at runtime.
点击查看答案
相关考题
-
单项选择题
Which Man class properly represents the relationship "Man has a best friend who is a Dog"?()
A.class Man extends Dog { }
B.class Man implements Dog { }
C.class Man { private BestFriend dog; }
D.class Man { private Dog bestFriend; }
E.class Man { private Dog<bestFriend>; }
F.class Man { private BestFriend<dog>; } -
单项选择题
A company that makes Computer Assisted Design (CAD) software has, within its application, some utility classes that are used to perform 3D rendering tasks. The companys chief scientist has just improved the performance of one of the utility classes key rendering algorithms, and has assigned a programmer to replace the old algorithm with the new algorithm. When the programmer begins researching the utility classes, she is happy to discover that the algorithm to be replaced exists in only one class. The programmer reviews that classs API, and replaces the old algorithm with the new algorithm, being careful that her changes adhere strictly to the classs API. Once testing has begun, the programmer discovers that other classes that use the class she changed are no longer working properly. What design flaw is most likely the cause of these new bugs?()
A.Inheritance
B.Tight coupling
C.Low cohesion
D.High cohesion
E.Loose coupling
F.Object immutability -
多项选择题
Given that: Gadget has-a Sprocket and Gadget has-a Spring and Gadget is-a Widget and Widget has-a Sprocket Which two code fragments represent these relationships? ()
A.
B.
C.
D.
E.
F.
