Question 6

Assuming the Widget class has a getPrice method, this code does not compile:

Which two statements, independently, would allow this code to compile? (Choose two.)
  • Question 7

    Given the code fragment:

    What is the result?
    A)

    B)

    C)

    D)
  • Question 8

    Given:

    After which line can we insert assert i < 0 || values[i] <= values[i + 1]; to verify that the values array is partially sorted?
  • Question 9

    Your organization makes mlib.jar available to your cloud customers. While working on a code cleanup project for mlib.jar, you see this method by customers:

    What security measures should be added to this method so that it meets the requirements for a customer accessible method?
  • Question 10

    Given:

    Which two codes, independently, can be inserted in line to 1 compile?