Q. 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
  • (C) Compilation Error
  • (D) Nothing is displayed
πŸ’¬ Discuss
βœ… Correct Answer: (B) INDIA

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
134
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Sonali Mishra
Publisher
πŸ“ˆ
88%
Success Rate