1.
In Java, if an applet is dead, it automatically invokes the _______________________ method when the browser is closed.
2.
Which of the following is the possible pivot-handler in the Java web service?
3.
In Java, which of the following classes implements the Set interface?
4.
In java, which of the following methods is used to search for an element in a list?
5.
What is the output of the following Java code:
import java.util.*;
class Array {
    public static void main(String args[]) {
        Vector obj = new Vector(4, 2);
        obj.addElement(new Integer(3));
        obj.addElement(new Integer(2));
        obj.addElement(new Integer(5));
        System.out.println(obj.elementAt(3));
    }
}
6.
What is the output of the following Java code:
class Test1 {
    int i = 20;
}
public class Test2 {
    public static void main(String args[]) {
        final Test1 t1 = new Test1();
        t1.i = 30;
        System.out.println(t1.i);
    }
}
7.
What is the output of the following Java code:
class Test {
    public static void main(String args[]) {
        int x = -4;
        System.out.println(x >> 2);
        int y = 4;
        System.out.println(y >> 1);
    }
}
8.
What is the output of the following Java code:
class Test {
    public static void main(String args[]) {
        int x = -1;
        System.out.println(x >>> 31);
    }
}
9.
What is the output of the following Java code:
class Test {
    static int count = 0;

    Test() {
        count++;
    }
    public static void main(String arr[]) {
        Test t1 = new Test();
        Test t2 = new Test();
        Test t3 = new Test();
        System.out.println("Total " + count + " objects created");
    }
}
10.
What is the output of the following Java code:
class Base {
    static int x = 10;
}
class Derived extends Base {
    public static void fun() {
        System.out.println(super.x);
    }
}