Question: Given the following three property files, what does the following method output? A. morado null B. violette generic C. morado lujoso D. violette null E.

Given the following three property files, what does the following method output? 

toothbrush.properties color=purple type=generic toothbrush_es.properties color=morado type=lujoso toothbrush_fr.properties color=violette void brush() { Locale.setDefault(new

A. morado null

B. violette generic

C. morado lujoso

D. violette null

E. The code does not compile.

F. An exception is thrown at runtime.

toothbrush.properties color=purple type=generic toothbrush_es.properties color=morado type=lujoso toothbrush_fr.properties color=violette void brush() { Locale.setDefault(new Locale. Builder () .setLanguage ("es") .setRegion ("MX") .build()); var rb = ResourceBundle.getBundle ("toothbrush", new Locale ("fr")); var a = rb.getString ("color"); var b = rb.getString("type"); System.out.print(a + " " + b); }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The correct answer is D violette null Explanation W... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!