Oracle Upgrade to Java SE 7 Programmer - 1Z0-805무료 덤프문제 풀어보기

Given the error message when running you application:
Exception in thread "main" java.util.MissingResourceException: can't find bundle for base name messageBundle, Locale
And given that the Message Bundle.properties file has been created, exists on your disk, and is properly formatted.
What is the cause of the error message?

정답: D
Which two Capabilities does Java.util.concurcent.BlockingQueue provide to handle operation that cannot be handled immediately?

정답: A,D
설명: (Fast2test 회원만 볼 수 있음)
Given the code fragment:
public void processFile() throws IOException, ClassNotFoundException {
try (FileReader fr = new FileReader ("logfilesrc.txt");
FileWriter fw = new FileWriter ("logfiledest.txt")) {
Class c = Class.forName ("java.lang.JString");
}
}
If exception occur when closing the FileWriter object and when retrieving the JString class object,
which exception object is thrown to the caller of the processFile method?

정답: A
Given the code fragment:
public static void main(String[] args) { Path dir = Paths.get("d:\\company");
// insert code here. Line **
for (Path entry: stream) {
System.out.println(entry.getFileName());
}
} catch (IOException e) {
System.err.println("Caught IOException: " + e.getMessage());
}
}
Which two try statements, when inserted at line 11, enable you to print files with the extensions.java, .htm, end and .jar.

정답: C,D
설명: (Fast2test 회원만 볼 수 있음)
Given the code fragment:
dataFormat df;
Which statement defines a new DataFormat object that displays the default date format for the UK Locale?

정답: E
설명: (Fast2test 회원만 볼 수 있음)
Given the code fragment:
public class TestString {
public static void main(String[] args) {
String str=null;
switch(str) {
case "":
System.out.println("blank"); break;
case "null":
System.out.println("NULL"); break;
default:
System.out.println("invalid"); break;
}
}
}
What is the result?

정답: C
설명: (Fast2test 회원만 볼 수 있음)
Given three resource bundles with these values set for menu1: ( The default resource bundle is
written in US English.)
English US resource Bundle
Menu1 = small
French resource Bundle
Menu1 = petit
Chinese Resource Bundle
Menu = 1
And given the code fragment:
Locale.setDefault (new Locale("es", "ES")); // Set default to Spanish and Spain
loc1 = Locale.getDefault();
ResourceBundle messages = ResourceBundle.getBundle ("messageBundle", loc1);
System.out.println (messages.getString("menu1"));
What is the result?

정답: A
설명: (Fast2test 회원만 볼 수 있음)
Given the code fragment:
String query = "SELECT ID FROM Employee"; \\ Line 1 try (Statement stmt = conn.CreateStatement()) { \\ Line 2 ResultSet rs = stmt.executeQuery(query); \\ Line 3 stmt.executeQuery ("SELECT ID FROM Customer"); \\ Line 4 while (rs.next()) { \\process the results System.out.println ("Employee ID: " + rs.getInt("ID") ); } } catch (Exception e) { system.out.println ("Error"); }
Assume that the SQL queries return records. What is the result of compiling and executing this code fragment?

정답: D
설명: (Fast2test 회원만 볼 수 있음)
The default file system includes a logFiles directory that contains the following files:
log - Jan2009
log_01_2010
log_Feb2010
log_Feb2011
log-sum-2012
How many files the matcher in this fragment match?
PathMatcher matcher = FileSystems.getDefault ().getPathMatcher ("glob:???_*1");

정답: F
설명: (Fast2test 회원만 볼 수 있음)

우리와 연락하기

문의할 점이 있으시면 메일을 보내오세요. 12시간이내에 답장드리도록 하고 있습니다.

근무시간: ( UTC+9 ) 9:00-24:00
월요일~토요일

서포트: 바로 연락하기 

English Deutsch 繁体中文 日本語