The line mapToInt(Person::GetSalary) will cause a compile error.If it is replaced by the following line, a "." is added in the beginning of the line, the result would be 1500.0:.mapToInt(Person::getSalary)
The line mapToInt(Person::GetSalary) will cause a compile error.
If it is replaced by the following line, a "." is added in the beginning of the line, the result would be 1500.0:
.mapToInt(Person::getSalary)
Question 2
Which two codes correctly represent a standard language locale code? (Choose two.)
u8
fr
es
U8
FR
ES
Correct answer: BC
Explanation:
Language codes use lowercase. The following examples create Locale objects for the French language in Canada, the English language in the U.S. and Great Britain. aLocale = new Locale("fr", "CA"); bLocale = new Locale("en", "US"); cLocale = new Locale("en", "GB"); Reference: https://docs.oracle.com/javase/tutorial/i18n/locale/create.html
Language codes use lowercase.
The following examples create Locale objects for the French language in Canada, the English language in the U.S. and Great Britain.