Vidyalelo
Java Programming · Q210

Interfaces and Abstract Classes

Programming · Java Programming · question 210

Q210

What will be the output of the following Java program? import java.util.*; class LOCALE_CLASS public static void main(String args[]) Locale obj = new Locale("HINDI", "INDIA") ; System.out.print(obj.getCountry());

A.
India
B.
INDIA
Answer
C.
Compilation Error
D.
Nothing is displayed

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board