black

OCJP(310-065)

登录

单项选择题

Given:
11.String test = "This is a test";
12.String[] tokens = test.split("\s");
13.System.out.println(tokens.length);
What is the result?()

A.0
B.1
C.4
D.Compilation fails.

相关考题

单项选择题 Given that c is a reference to a valid java.io.Console object, and: 11.String pw = c.readPassword("%s", "pw: "); 12.System.out.println("got " + pw); 13.String name = c.readLine("%s", "name: "); 14.System.out.println(" got ", name); If the user types fido when prompted for a password, and then responds bob when prompted for a name,what is the result?()

多项选择题 WhichtwoscenariosareNOTsafetoreplaceaStringBufferobjectwithaStringBuilderobject?()

单项选择题 Given: 12.Date date = new Date(); 13.df.setLocale(Locale.ITALY); 14.String s = df.format(date); The variable df is an object of type DateFormat that has been initialized in line 11. What is the result if this code is run on December 14, 2000?()

All Rights Reserved 版权所有©建筑考试题库(jzkao.com)

备案号:湘ICP备2020024380号-3