Question 126

Given this requirement:
Module vehicle depends on module part and makes its com.vehicle package available for all other modules.
Which module-info.java declaration meets the requirement?
  • Question 127

    Given:
    Automobile.java

    Car.java

    What must you do so that the code prints 4?
  • Question 128

    Given:

    What is the result?
  • Question 129

    Given the contents:
    MessageBundle.properties file:
    message=Hello
    MessageBundle_en.properties file:
    message=Hello (en)
    MessageBundle_US.properties file:
    message=Hello (US)
    MessageBundle_en_US.properties file:
    message=Hello (en_US)
    MessageBundle_fr_FR.properties file:
    message=Bonjour
    and the code fragment:
    Locale.setDefault(Locale.FRANCE);
    Locale currentLocale = new Locale.Builder().setLanguage("en").build();
    ResourceBundle messages = ResourceBundle.getBundle("MessageBundle", currentLocale); System.out. println(messages.getString("message")); Which file will display the content on executing the code fragment?
  • Question 130

    Given:

    What is the result?