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?
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?
The correct way to specify keys and their corresponding values in a properties file for a ResourceBundle is through the format 'key = value'. Therefore, 'menu1 = File Menu menu2 = View Menu' correctly sets 'menu1' to 'File Menu' and 'menu2' to 'View Menu'.
Answer is D.
D,test
I'm assuming D has a typo, as properties files do not contain commas
D is the correct answer
D is correct.