1.
What is the output of the following Java code:
class Demo {
    public static void main(String args[]) {
        String s1 = "Hello World";
        String s2 = s1.substring(0, 3);
        System.out.println(s2);
    }
}
2.
In Java, which of the following classes is used to create an object with a mutable character sequence?
3.
In Java, the __________ method of the StringBuffer class is used to join the string representation to the end of an invoking string.
4.
What is the output of the following Java code:
class Demo {
    public static void main(String args[]) {
        StringBuffer s1 = new StringBuffer("Hello World");
        s1.insert(6, "Good ");
        System.out.println(s1);
    }
}
5.
In Java, which of the following classes is not included in java.lang?
6.
In Java, which of the following is a method of the wrapper Float that is used to convert the value of an object into a byte?
7.
In Java, which of these is a super class of wrappers Long, Character and Integer?
8.
In Java, which of the following is a method of the wrapper Integer that is used to convert the value of an object into a byte?
9.
What is the output of the following Java code:
class Demo {
    public static void main(String args[]) {
        Integer i = new Integer(257);
        byte x = i.byteValue();
        System.out.print(x);
    }
}
10.
What is the output of the following Java code:
class Demo {
    public static void main(String args[]) {
        Long i = new Long(256);
        System.out.print(i.hashCode());
    }
}