单项选择题
Given: Which code fragment, inserted at the end of line 12, produces the output p is 420?()
Given: Which statement is true?()
Given: What is the appropriate definition of the hashCode method in class Person?()
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?()
Given: 11.String test = "This is a test"; 12.String[] tokens = test.split("\s"); 13.System.out.println(tokens.length); What is the result?()
Given: What is the result?()
Given: 1.package test; 2. 3.class Target { 4.public String name = "hello";5.} What can directly access and change the value of the variable name?()
Click the Exhibit button. What is the result?()
Given: Which method will complete this class?()
赞题库-搜题找答案
(已有500万+用户使用)
无需下载 立即使用
版权所有©考试资料网(ppkao.com)All Rights Reserved