Question 151

Given:

You want to obtain the Filechannel object on line 1.
Which code fragment will accomplish this?
  • Question 152

    Given:

    What is the result?
  • Question 153

    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?
  • Question 154


    And the code fragment:

    Which situation will occur on code fragment execution?
  • Question 155

    Given:

    and
    checkQuality(QUALITY.A);
    and

    Which code fragment can be inserted into the switch statement to print Best?