1Z0-819 Exam Question 21

Your organization makes mlib.jar available to your cloud customers. While working on a new feature for mlib.jar, you see that the customer visible method public void enableService(String hostName, String portNumber) executes this code fragment

and you see this grant is in the security policy file:

What security vulnerability does this expose to your cloud customer's code?
  • 1Z0-819 Exam Question 22

    Given:

    What is the result?
  • 1Z0-819 Exam Question 23

    Given:

    Which one is correct?
  • 1Z0-819 Exam Question 24

    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)
  • 1Z0-819 Exam Question 25

    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?