A.about
B.over
C.against
D.with
第1题
A.line1
B.line2
C.line5
D.line8
第2题
A.public
B.nomodifier
C.protected
D.private
第3题
A.Localvariablesdefinedinsideamethodaredestroyedwhenthemethodisexited.
B.Localvariablesarealsocalledautomaticvariables.
C.Variablesdefinedoutsideamethodarecreatedwhentheobjectisconstructed.
D.Amethodparametervariablecontinuestoexistforaslongastheobjectisneededinwhichthe methodisdefined.
第4题
A.line4
B.line6
C.line7
D.line8
第5题
A.Thedescriptionoftheclassanditspurpose
B.Alistofmethodsinitssuperclass
C.Alistofmembervariable
D.Theclasshierarchy
第6题
A.Declarationofprimitivetypessuchasboolean,byteandsoondoesnotallocatememoryspaceforthevariable.
B.Declarationofprimitivetypessuchasboolean,byteandsoonallocatesmemoryspace forthevariable.
C.DeclarationofnonprimitivetypessuchasString,Vectorandsoondoesnotallocatememoryspacefortheobject.
D.DeclarationofnonprimitivetypessuchasString,Vectoranssoonallocatesmemoryspacefortheobject.
第7题
A.Thevalueis8
B.Thevalueis9
C.Thevalueis10
D.Thevalueis11
第8题
classPerson{
Stringname,department;
intage;
publicPerson(Stringn){
name=n;
}
publicPerson(Stringn,inta){
name=n;
age=a;
}
publicPerson(Stringn,Stringd,inta){
//doingthesameastwoargumentsversionofconstructor
//includingassignmentname=n,age=adepartment=d;
}
}
Whichexpressioncanbeaddedatthe"doingthesameas..."partoftheconstructor?()
第9题
A.floatf=11.1;
B.doubled=5.3E12;
C.doubled=3.14159;
D.doubled=3.14;.
第10题
A.Thedisplayedstringcanusemultiplefonts.
B.Themaximumnumberofcharactersinalinewillbe40.
C.Thedisplayedwidthisexactly40characters.
D.Theusercaneditthecharacters.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!