Java SE 8 Programmer II — Question 45

You have been asked to create a ResourceBundle which uses a properties file to localize an application.
Which code example specifies valid keys of menu1 and menu2 with values of File Menu and View Menu?

Answer options

Correct answer: B

Explanation

Option B is correct because it uses the correct structure for defining keys and values in a ResourceBundle format. The other options either have incorrect syntax or do not follow the required format for key-value pairs.