Classes

1

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());
        }
    }
A. India
B. INDIA
C. HINDI
D. Nothing is displayed

2

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());
        }
    }

A. India
B. INDIA
C. HINDI
D. Nothing is displayed

3

Which of these constant value will change when the button at the end of 

scroll bar was clicked to increase its value?

A. BLOCK_DECREMENT
B. BLOCK_INCREMENT
C. UNIT_DECREMENT
D. UNIT_INCREMENT

4

Which of these is superclass of ContainerEvent class?

A. WindowEvent
B. ComponentEvent
C. ItemEvent
D. InputEvent

5

What is the output of this program?

    class string_class {
        public static void main(String args[])
        {
            String obj = "hello";
            String obj1 = "world";   
            String obj2 = "hello";
            System.out.println(obj.equals(obj1) + " " + obj.equals(obj2));
        }
    }
A. false false
B. true true
C. true false
D. false true