Discussion Forum : Classes
Question -


What is the output of this program?


import java.util.*;
class LOCALE_CLASS {
public static void main(String args[]) {
Locale obj = new Locale("HINDI", "INDIA") ;
System.out.print(obj.getDisplayLanguage());
}
}
Options:
A .  India
B .  INDIA
C .  HINDI
D .  Nothing is displayed
Answer: Option C

None.
Output:
$ javac LOCALE_CLASS.java
$ java LOCALE_CLASS
HINDI



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *