Given: 11.String test = "a1b2c3"; 12.String[] tokens = test.split("\\d"); 13.for(String s: tokens) System.out.print(s + " "); What is the result?()
A.a b c B.1 2 3 C.a1b2c3 D.a1 b2 c3
多项选择题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 ");
单项选择题Given: 12.String csv = Sue,5,true,3 ; 13.Scanner scanner = new Scanner( csv ); 14.scanner.useDelimiter( , );15. int age = scanner.nextInt(); What is the result?()
A.Compilation fails. B.After line 15, the value of age is 5. C.After line 15, the value of age is 3. D.An exception is thrown at runtime.
多项选择题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.
多项选择题Given: Which two statements are true about the result if the default locale is Locale.US?()
A.The value of b is 2. B.The value of a is 3.14. C.The value of b is 2.00. D.The value of a is 3.141. E.The value of a is 3.1415. F.The value of a is 3.1416.
单项选择题Given that the current directory is empty, and that the user has read and write privileges to the currentdirectory, and the following: Which statement is true?()
A.Compilation fails. B.Nothing is added to the file system. C.Only a new file is created on the file system. D.Only a new directory is created on the file system. E.Both a new file and a new directory are created on the file system.