单项选择题
Which code, inserted at line 14, sets the value of b to 314.159,26?()
A.b=nf.parse(input);
B.b=nf.format(input);
C.b=nf.equals(input);
D.b=nf.parseObject(input);
相关考题
-
单项选择题
Given a vaid DateFormat object named df, and What updates d’s value with the date represented by ds?()
A.18.d=df.parse(ds);
B.18.d=df.getDate(ds);
C.18.try{19.d=df.parse(ds);20. }catch(ParseException e){ }
D.18.try{19.d=df.getDate(ds);20. }catch(ParseException e){ } -
多项选择题
Giventhatcisareferencetoavalidjava.io.Consoleobject,whichtwocodefragmentsreadalineoftextfromtheconsole?()
A.String s = c.readLine();
B.char[ ] c = c.readLine();
C.String s = c.readConsole();
D.char[ ] c = c.readConsole();
E.String s = c.readLine("%s", "name ");
F.char[ ] c = c.readLine("%s", "name "); -
多项选择题
Whichthreestatementsconcerningtheuseofthejava.io.Serializableinterfacearetrue?()
A.Objects from classes that use aggregation cannot be serialized
B.An object serialized on one JVM can be successfully deserialized on a different JVM
C.The values in fields with the volatile modifier will NOT survive serialization and deserialization
D.The values in fields with the transient modifier will NOT survive serialization and deserialization
E.It is legal to serialize an object of a type that has a supertype that does NOT implement java.io.Serializable
