最新的Oracle Java SE 7 Programmer II - 1Z0-804免費考試真題
問題1
Given: Which fragment, inserted in the Books interface, enables the code to compile?

Given: Which fragment, inserted in the Books interface, enables the code to compile?

正確答案: A
問題2
Given this error message when running your application:
Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name MessageBundle, locale
And given that the MessageBundle.properties file has been created, exists on your disk, and is properly formatted.
What is the cause of the error message?
Given this error message when running your application:
Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name MessageBundle, locale
And given that the MessageBundle.properties file has been created, exists on your disk, and is properly formatted.
What is the cause of the error message?
正確答案: B
說明:(僅 PDFExamDumps 成員可見)
問題3
Given:

What is the most likely result?
Given:

What is the most likely result?
正確答案: C
問題4
Given the following incorrect program:

Which two changes make the program work correctly?
Given the following incorrect program:

Which two changes make the program work correctly?
正確答案: A,C
說明:(僅 PDFExamDumps 成員可見)
問題5
Given: What is the most likely result?

Given: What is the most likely result?

正確答案: D
問題6
Given:
import java.util.concurrent.atomic.AtomicInteger;
public class AtomicCounter {
private AtomicInteger c = new AtomicInteger(0);
public void increment() {
// insert code here
}
}
Which line of code, inserted inside the increment () method, will increment the value of c?
Given:
import java.util.concurrent.atomic.AtomicInteger;
public class AtomicCounter {
private AtomicInteger c = new AtomicInteger(0);
public void increment() {
// insert code here
}
}
Which line of code, inserted inside the increment () method, will increment the value of c?
正確答案: A
說明:(僅 PDFExamDumps 成員可見)
問題7
Select four examples that initialize a NumberFormat reference using a factory.
Select four examples that initialize a NumberFormat reference using a factory.
正確答案: A,D,E,F
說明:(僅 PDFExamDumps 成員可見)
問題8
Given:

Which three are true?
Given:

Which three are true?
正確答案: A,B,D
說明:(僅 PDFExamDumps 成員可見)
問題9
Given the code fragment:

If the file userguide.txt does not exist, what is the result?
Given the code fragment:

If the file userguide.txt does not exist, what is the result?
正確答案: E
說明:(僅 PDFExamDumps 成員可見)
問題10
Which two are true about Singletons?
Which two are true about Singletons?
正確答案: A,C