P

Pooja • 4.41K Points
Extraordinary

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") ;
        System.out.print(obj.getDisplayLanguage());
    }
}

  • (A) India
  • (B) INDIA
  • (C) HINDI
  • (D) Nothing is displayed
  • Correct Answer - Option(C)
  • Views: 15
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics