网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Given:12.NumberFormatnf=NumberFormat.getInstance();13.nf.setMaximumFractionDigits(4);14.nf.setMinimumFractionDigits(2);15.Stringa=nf.format(3.1415926);16.Stringb=nf.format(2);WhichtwostatementsaretrueabouttheresultifthedefaultlocaleisLocale.US?()
A.Thevalueofbis2.00.
B.Thevalueofais3.141.
C.Thevalueofais3.14.
D.Thevalueofbis2.0000.
E.Thevalueofais3.1415.
F.Thevalueofais3.1416.
G.Thevalueofbis2.
参考答案
更多 “ Given:12.NumberFormatnf=NumberFormat.getInstance();13.nf.setMaximumFractionDigits(4);14.nf.setMinimumFractionDigits(2);15.Stringa=nf.format(3.1415926);16.Stringb=nf.format(2);WhichtwostatementsaretrueabouttheresultifthedefaultlocaleisLocale.US?()A.Thevalueofbis2.00.B.Thevalueofais3.141.C.Thevalueofais3.14.D.Thevalueofbis2.0000.E.Thevalueofais3.1415.F.Thevalueofais3.1416.G.Thevalueofbis2. ” 相关考题
考题
Given:1.publicinterfaceFoo{2.intk=4:3.}Whichthreeareequivalenttoline2?()
A.finalintk=4:B.publicintk=4:C.staticintk=4:D.privateintk=4:E.abstractintk=4:F.volatileintk=4:G.transientintk=4:H.protectedintk=4:
考题
doubleinput=314159.26;12.NumberFormatnf=NumberFormat.getInstance(Locale.ITALIAN);13.Stringb;14.//insertcodehereWhichcode,insertedatline14,setsthevalueofbto314.159,26?()
A.b=nf.parse(input);B.b=nf.format(input);C.b=nf.equals(input);D.b=nf.parseObject(input);
考题
NumberFormatnf=NumberFormat.getInstance();nf.setMaximumFractionDigits(4);nf.setMinimumFractionDigits(2);Stringa=nf.format(3.1415926);Stringb=nf.format(2);WhichtwoaretrueabouttheresultifthedefaultlocaleisLocale.US?()A.Thevalueofbis2.B.Thevalueofais3.14.C.Thevalueofbis2.00.D.Thevalueofais3.141.E.Thevalueofais3.1415.F.Thevalueofais3.1416.G.Thevalueofbis2.0000.
考题
Given:When line 15 is reached, how many objects are eligible for the garbage collector?()
A.0B.1C.2D.3E.4F.5
考题
Given:WhichchangecanyoumaketoTargetwithoutaffectingClient?()
A.Line4ofclassTargetcanbechangedtoreturni++;B.Line2ofclassTargetcanbechangedtoprivateinti=1;C.Line3ofclassTargetcanbechangedtoprivateintaddOne(){D.Line2ofclassTargetcanbechangedtoprivateIntegeri=0;
考题
Given:11.doubleinput=314159.26;12.NumberFormatnf=NumberFormat.getInstance(Locale.ITALIAN);13.Stringb;14.//insertcodehereWhichcode,insertedatline14,setsthevalueofbto314.159,26?()
A.b=nf.parse(input);B.b=nf.format(input);C.b=nf.equals(input);D.b=nf.parseObject(input);
考题
Given:Whenline14isreached,howmanyobjectsareeligibleforthegarbagecollector?()
A.0B.1C.2D.3E.4
考题
Given:1.packagetest;2.3.classTarget{4.publicStringname=hello;5.}Whatcandirectlyaccessandchangethevalueofthevariablename?()
A.anyclassB.onlytheTargetclassC.anyclassinthetestpackageD.anyclassthatextendsTarget
考题
Given: int m=7; float x=2.5, y=4.7; what is the value of the expression of x+m%3* (int) (x+y)%2/4 ().A.2.500000B.2.750000C.3.500000D.0.000000
热门标签
最新试卷