Given that "it, IT" and "pt" are valid Locale codes, and given:
41. Date d = new Date(); 42. DateFormat df; 43. Locale[] la = {new Locale("it", "IT"), new Locale("pt")}; 44. for(Locale l: la) { 45. df = DateFormat.getDateInstance(DateFormat.FULL, l); 46. System.out.println(d.format(df)); 47. }
Which are true? (Choose all that apply.)
D, E, and F are correct.
It's okay to mix the two types of Locale on line 43.
On line 46, we should use the DateFormat instance to invoke the format()
method on the Date instance.
The rest of the code is legal.