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.
第1题:
A.Line4ofclassTargetcanbechangedtoreturni++;
B.Line2ofclassTargetcanbechangedtoprivateinti=1;
C.Line3ofclassTargetcanbechangedtoprivateintaddOne(){
D.Line2ofclassTargetcanbechangedtoprivateIntegeri=0;
第2题:
A.0
B.1
C.2
D.3
E.4
第3题:
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.500000
B.2.750000
C.3.500000
D.0.000000
第4题:
A.b=nf.parse(input);
B.b=nf.format(input);
C.b=nf.equals(input);
D.b=nf.parseObject(input);
第5题:
A.anyclass
B.onlytheTargetclass
C.anyclassinthetestpackage
D.anyclassthatextendsTarget