adplus-dvertising
frame-decoration

Question

What is the output of this program?
    import java.util.*;
    class LOCALE_CLASS
    {
        public static void main(String args[])
        {
            Locale obj = new Locale("INDIA") ;
            System.out.print(obj.getCountry());
        }
    }

a.

India

b.

INDIA

c.

Compilation Error

d.

Nothing is displayed

Posted under Java Programming

Answer: (d).Nothing is displayed

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?