Click the Exhibit button.
What is the result?()
A.go in Goban go in Sente go in Sente
B.go in Sente go in Sente go in Goban
C.go in Sente go in Goban go in Goban
D.go in Goban go in Goban go in Sente
您可能感兴趣的试卷
你可能感兴趣的试题
Given:
Which statement is true?()
A.The code will compile without changes.
B.The code will compile if public Tree() { Plant(); } is added to the Tree class.
C.The code will compile if public Plant() { Tree(); } is added to the Plant class.
D.The code will compile if public Plant() { this("fern"); } is added to the Plant class.
E.The code will compile if public Plant() { Plant("fern"); } is added to the Plant class.
A.static final int[] a = { 100,200 };
B.static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; }
C.static final int[] a = new int[2]{ 100,200 };
D.static final int[] a; static void init() { a = new int[3]; a[0]=100; a[1]=200; }
Click the Exhibit button.
What is the result?()
A.Line 26 prints "a" to System.out.
B.Line 26 prints "b" to System.out.
C.An exception is thrown at line 26 at runtime.
D.Compilation of class A will fail due to an error in line 6.
Given.
Which two statements are true?()
A.Foo.beta() is a valid invocation of beta().
B.Foo.alpha() is a valid invocation of alpha().
C.Method beta() can directly call method alpha().
D.Method alpha() can directly call method beta().
Given:
What is the result when the programmer attempts to compile the code and run it with the command java Converter 12?()
A.It is true that j==i.
B.It is false that j==i.
C.An exception is thrown at runtime.
D.Compilation fails because of an error in line 13.
Given:
What is the result?()
A.true true
B.false true
C.true false
D.false false
Given:
What creates the appropriate DateFormat object and adds a day to the Date object?()
A.35. DateFormat df = DateFormat.getDateFormat();42. d.setTime( (60 * 60 * 24) + d.getTime());
B.35. DateFormat df = DateFormat.getDateInstance();42. d.setTime( (1000 * 60 * 60 * 24) + d.getTime());
C.35. DateFormat df = DateFormat.getDateFormat();42. d.setLocalTime( (1000*60*60*24) + d.getLocalTime());
D.35. DateFormat df = DateFormat.getDateInstance();42. d.setLocalTime( (60 * 60 * 24) + d.getLocalTime());
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
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.
最新试题
A programmer has an algorithm that requires a java.util.List that provides an efficient implementation of add(0, object), but does NOT need to support quick random access.What supports these requirements?()
Given a class whose instances, when found in a collection of objects, are sorted by using the compare To method, which two statements are true?()
A team of programmers is involved in reviewing a proposed design for a new utility class. After some discussion, they realize that the current design allows other classes to access methods in the utility class that should be accessible only to methods within the utility class itself.What design issue has the team discovered?()
Given:A programmer is developing a class Key, that will be used as a key in a standard java.util.HashMap. Which two methods should be overridden to assure that Key works correctly as a key?()
Given:What is the result?()
Given:What is the result?()
Given a method that must ensure that its parameter is not null:What, inserted at line 12, is the appropriate way to handle a null value?()
Given:What is the result?()
Click the Exhibit button.What two must the programmer do to correct the compilation errors?()
Given:What is the result?()