1Z0-853 試験問題を無料オンラインアクセス
| 試験コード: | 1Z0-853 |
| 試験名称: | Java Standard Edition 5 Programmer Certified Professional Exam |
| 認定資格: | Oracle |
| 無料問題数: | 362 |
| 更新日: | 2026-11-15 |
Given:
12.
Date date = new Date();
13.
df.setLocale(Locale.ITALY);
14.
String s = df.format(date);
The variable df is an object of type DateFormat that has been initialized in line 11.
What is the result if this code is run on December 14, 2000?
Given:
33.
try {
34.
// some code here
35.
} catch (NullPointerException e1) {
36.
System.out.print("a");
37.
} catch (RuntimeException e2) {
38.
System.out.print("b");
39.
} finally {
40.
System.out.print("c");
41.
}
What is the result if a NullPointerException occurs on line 34?
Given a pre-generics implementation of a method:
11.
public static int sum(List list) {
12.
int sum = 0;
13.
for ( Iterator iter = list.iterator(); iter.hasNext(); ) {
14.
int i = ((Integer)iter.next()).intValue();
15.
sum += i;
16.
}
17.
return sum;
18.
}
Which three changes must be made to the method sum to use generics? (Choose three.)
Given:
1.public interface A {
2.String DEFAULT_GREETING = "Hello World";
3.public void method1();
4.}
A programmer wants to create an interface called B that has A as its parent. Which interface declaration is correct?

