A.b=nf.parse(input);
B.b=nf.format(input);
C.b=nf.equals(input);
D.b=nf.parseObject(input);
第1题:
A.Directiond=NORTH;
B.Nav.Directiond=NORTH;
C.Directiond=Direction.NORTH;
D.Nav.Directiond=Nav.Direction.NORTH;
第2题:
A.Direction d = NORTH;
B.Nav.Direction d = NORTH;
C.Direction d = Direction.NORTH;
D.Nav.Direction d = Nav.Direction.NORTH;
第3题:
A.publicvoidfoo(){/*morecodehere*/}
B.privatevoidfoo(){/*morecodehere*/}
C.protectedvoidfoo(){/*morecodehere*/}
D.intfoo(){/*morecodehere*/}
E.voidfoo(){/*morecodehere*/}
第4题:
A. any class
B. only the Target class
C. any class in the test package
D. any class that extends Target
第5题:
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.