최신Oracle Java SE 11 Programmer II - 1Z0-816무료샘플문제
문제1
Which is a proper JDBC URL?
Which is a proper JDBC URL?
정답: A
설명: (ExamPassdump 회원만 볼 수 있음)
문제2
Given:

Which is true about line 1?
Given:

Which is true about line 1?
정답: C
설명: (ExamPassdump 회원만 볼 수 있음)
문제3
Given this enum declaration:

Examine this code:
System.out.println(Letter.values()[1]);
What code should be written at line 5 for this code to print 200?
Given this enum declaration:

Examine this code:
System.out.println(Letter.values()[1]);
What code should be written at line 5 for this code to print 200?
정답: A
설명: (ExamPassdump 회원만 볼 수 있음)
문제4
Given the code fragment:
Path currentFile = Paths.get("/scratch/exam/temp.txt");
Path outputFile = Paths get("/scratch/exam/new.txt");
Path directory = Paths.get("/scratch/");
Files.copy(currentFile, outputFile);
Files.copy(outputFile, directory);
Files.delete (outputFile);
The /scratch/exam/temp.txt file exists. The /scratch/exam/new.txt and /scratch/new.txt files do not exist.
What is the result?
Given the code fragment:
Path currentFile = Paths.get("/scratch/exam/temp.txt");
Path outputFile = Paths get("/scratch/exam/new.txt");
Path directory = Paths.get("/scratch/");
Files.copy(currentFile, outputFile);
Files.copy(outputFile, directory);
Files.delete (outputFile);
The /scratch/exam/temp.txt file exists. The /scratch/exam/new.txt and /scratch/new.txt files do not exist.
What is the result?
정답: B
설명: (ExamPassdump 회원만 볼 수 있음)
문제5
Given:

Which three actions implement Java SE security guidelines? (Choose three.)
Given:

Which three actions implement Java SE security guidelines? (Choose three.)
정답: B,C,E
문제6
Given:
jdeps -jdkinternals C:\workspace4\SimpleSecurity\jar\classes.jar
Which describes the expected output?
Given:
jdeps -jdkinternals C:\workspace4\SimpleSecurity\jar\classes.jar
Which describes the expected output?
정답: C
설명: (ExamPassdump 회원만 볼 수 있음)
문제7
Given:
var data = new ArrayList<>();
data.add("Peter");
data.add(30);
data.add("Market Road");
data.set(1, 25);
data.remove(2);
data.set(3, 1000L);
System.out.print(data);
What is the output?
Given:
var data = new ArrayList<>();
data.add("Peter");
data.add(30);
data.add("Market Road");
data.set(1, 25);
data.remove(2);
data.set(3, 1000L);
System.out.print(data);
What is the output?
정답: C
설명: (ExamPassdump 회원만 볼 수 있음)
문제8
A company has an existing sales application using a Java 8 jar file containing packages:
com.company.customer;
com.company.customer.orders;
com.company.customer.info;
com.company.sales;
com.company.sales.leads;
com.company.sales.closed;
com.company.orders;
com.company.orders.pending;
com.company.orders.shipped.
To modularize this jar file into three modules, customer, sales, and orders, which module-info.java would be correct?
A)

B)

C)

D)

A company has an existing sales application using a Java 8 jar file containing packages:
com.company.customer;
com.company.customer.orders;
com.company.customer.info;
com.company.sales;
com.company.sales.leads;
com.company.sales.closed;
com.company.orders;
com.company.orders.pending;
com.company.orders.shipped.
To modularize this jar file into three modules, customer, sales, and orders, which module-info.java would be correct?
A)

B)

C)

D)

정답: B
설명: (ExamPassdump 회원만 볼 수 있음)