单项选择题
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
点击查看答案
相关考题
-
单项选择题
What is the result?()
A.81
B.82
C.91
D.92
E.Compilation fails.
F.An exception is thrown at runtime. -
多项选择题
AteamofprogrammersisreviewingaproposedAPIforanewutilityclass.Aftersomediscussion,theyrealizethattheycanreducethenumberofmethodsintheAPIwithoutlosinganyfunctionality.Iftheyimplementthenewdesign,whichtwoprincipleswilltheybepromoting?()
A.Looser coupling
B.Tighter coupling
C.Lower cohesion
D.Higher cohesion
E.Weaker encapsulation
F.Stronger encapsulation -
单项选择题
WhichManclassproperlyrepresentstherelationship"ManhasabestfriendwhoisaDog"?()
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;}
F.class Man{private BestFriend;}
