7.HP0-450HP0-210HP0-240000-872000-234 }
What is required at line 5 in class SomeApp to use the process method of BitUtils?
A: process(bytes);
B: BitUtils.process(bytes);
C: app.BitUtils.process(bytes);
D: util.BitUtils.process(bytes);
E: import util.BitUtils.*; process(bytes);
F: SomeApp cannot use the process method in BitUtils.
Correct Answers:F
7. 000-238000-385000-993000-078000-141Given:
12.NumberFormat nf = NumberFormat.getInstance();
13.nf.setMaximumFractionDigits(4);
14.nf.setMinimumFractionDigits(2);
15.String a = nf.format(3.1415926);
16.String b = nf.format(2);
Which two statements are true about the result if the default locale is Locale.US? (Choose two.)
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.
G:The value of b is 2.0000.
Correct Answers:C, F
8. 000-236000-235310-015000-994000-630Given a correctly compiled class whose source code is:
1. package com.sun.sjcp;
2. public class Commander {
3.public static void main(String[] args) {
4.// more code here
5.}
6. }
Assume that the class file is located in /foo/com/sun/sjcp/, the current directory is /foo/, and that the classpath contains "." (current directory).
Which command line correctly runs Commander?
A: java Commander
B: java com.sun.sjcp.Commander
C: java com/sun/sjcp/Commander
D: java -cp com.sun.sjcp Commander
E: java -cp com/sun/sjcp Commander
Correct Answers:B
9. 000-094920-172920-322920-450920-569310-202 Given:
12. System.out.format("Pi is approximately %d.", Math.PI);
What is the result?
A: Compilation fails.
B: Pi is approximately 3.
C: Pi is approximately 3.141593.
D: An exception is thrown at runtime.
Correct Answers:D
10. MCSE70-29970-22970-21870-22070-23770-28570-30170-62170-622Given:
11. public class Person {
12.private name;
13.public Person(String name) {
14.this.name = name;
15.}
16.public int hashCode() {
17.return 420;
18.}
19. }
Which statement is true?
A: The time to find the value from HashMap with a Person key depends on the size of the map.
B: Deleting a Person key from a HashMap will delete all map entries for all keys of type Person.
C: Inserting a second Person object into a HashSet will cause the first Person object to be removed as a duplicate.
D: The time to determine whether a Person object is contained in a HashSet is constant and does NOT depend on the size of the map.
Correct Answers:A