1Z0-851 무료 덤프문제 온라인 액세스
| 시험코드: | 1Z0-851 |
| 시험이름: | Java Standard Edition 6 Programmer Certified Professional Exam |
| 인증사: | Oracle |
| 무료 덤프 문항수: | 290 |
| 업로드 날짜: | 2026-05-23 |
Given:
1.import java.util.*;
2.public class WrappedString {
3.private String s;
4.public WrappedString(String s) { this.s = s; }
5.public static void main(String[] args) {
6.HashSet<Object> hs = new HashSet<Object>();
7.WrappedString ws1 = new WrappedString("aardvark");
8.WrappedString ws2 = new WrappedString("aardvark");
9.String s1 = new String("aardvark");
10.String s2 = new String("aardvark");
11.hs.add(ws1); hs.add(ws2); hs.add(s1); hs.add(s2);
12.System.out.println(hs.size()); } } What is the result?
Given:
21.abstract class C1 {
22.public C1() { System.out.print(1); }
23.}
24.class C2 extends C1 {
25.public C2() { System.out.print(2); }
26.}
27.class C3 extends C2 {
28.public C3() { System.out.println(3); }
29.}
30.public class Ctest {
31.public static void main(String[] a) { new C3(); }
32.}
What is the result?
Given:
11.static void test() throws RuntimeException {
12.try {
13.System.out.print("test ");
14.throw new RuntimeException();
15.}
16.catch (Exception ex) { System.out.print("exception "); }
17.}
18.public static void main(String[] args) {
19.try { test(); }
20.catch (RuntimeException ex) { System.out.print("runtime "); }
21.System.out.print("end ");
22.}
What is the result?
A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar. Which three, taken independently, will allow the developer to use the Paper class while compiling the Book class? (Choose three.)

