What is the result?

Given the code fragments:
class Employee {


What is the result?
A. New York
B. City Not available
C. null
D. A NoSuchElementException is thrown at run time.

Download Printable PDF. VALID exam to help you PASS.

5 thoughts on “What is the result?

  1. Answer; C (assuming null is not priting anything)
    Prints nothing (as eAddress will be “city not available”)

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.