A.issues
B.incidents
C.impacts
D.inferences
第1题
A.Localvariablesdefinedinsideamethodaredestroyedwhenthemethodisexited.
B.Localvariablesarealsocalledautomaticvariables.
C.Variablesdefinedoutsideamethodarecreatedwhentheobjectisconstructed.
D.Amethodparametervariablecontinuestoexistforaslongastheobjectisneededinwhichthe methodisdefined.
第2题
A.line4
B.line6
C.line7
D.line8
第3题
A.Thedescriptionoftheclassanditspurpose
B.Alistofmethodsinitssuperclass
C.Alistofmembervariable
D.Theclasshierarchy
第4题
A.Declarationofprimitivetypessuchasboolean,byteandsoondoesnotallocatememoryspaceforthevariable.
B.Declarationofprimitivetypessuchasboolean,byteandsoonallocatesmemoryspace forthevariable.
C.DeclarationofnonprimitivetypessuchasString,Vectorandsoondoesnotallocatememoryspacefortheobject.
D.DeclarationofnonprimitivetypessuchasString,Vectoranssoonallocatesmemoryspacefortheobject.
第5题
A.Thevalueis8
B.Thevalueis9
C.Thevalueis10
D.Thevalueis11
第6题
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?()
第7题
A.floatf=11.1;
B.doubled=5.3E12;
C.doubled=3.14159;
D.doubled=3.14;.
第8题
A.Thedisplayedstringcanusemultiplefonts.
B.Themaximumnumberofcharactersinalinewillbe40.
C.Thedisplayedwidthisexactly40characters.
D.Theusercaneditthecharacters.
第9题
A.x>0
B.x>-3
C.x<=-3
D.x<=0&x>-3
第10题
A.010
B.0x10
C.08
D.0x8
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!