Given the definition of the Country class:

Given the definition of the Country class:


A. {EUROPE = [Italy, Germany], ASIA = [Japan]}
B. {ASIA = [Japan], EUROPE = [Italy, Germany]}
C. {EUROPE = [Germany, Italy], ASIA = [Japan]}
D. {EUROPE = [Germany], EUROPE = [Italy], ASIA = [Japan]}

Download Printable PDF. VALID exam to help you PASS.

5 thoughts on “Given the definition of the Country class:

  1. Question is very strange.

    Javadoc says:

    This (HashMap) class makes no guarantees as to the order of the map; in particular, it does not guarantee that the order will remain constant over time.

    Running the code in Eclipse gives “A” as an answer and in IntelliJ “B”.

    Not sure if this is a real OCA question.

  2. A
    Note: The country class name should be same either “country” or “Country” everywhere.

Leave a Reply

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


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