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.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.
Given:
Which statement is true?()
A.Compilation fails.
B.An exception is thrown at runtime.
C.Synchronizing the run() method would make the class thread-safe.
D.The data in variable "x" are protected from concurrent access problems.
E.Declaring the doThings() method as static would make the class thread-safe.
最新试题
Given:When the doSomething method is called, after which line does the Object created in line 5 become available for garbage collection?()
Given:What is the result?()
Given:Which two code fragments, inserted independently at line 13, will compile?()
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?()
Given:What is the result?()
Click the Exhibit button.Which statement is true about the set variable on line 12?()
Click the Exhibit button.What two must the programmer do to correct the compilation errors?()
Given:What is the result?()
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:What is the result?()