1.
What is the output of the following Java code:
class Test {
    public Test(int a) {
        System.out.println(a);
    }
    public static void main(String args[]) {
        Test t = new Test(40);
    }
}
2.
What is the output of the following Java code:
class Test {
    protected Test(int a) {
        System.out.println(a);
    }
    public static void main(String args[]) {
        Test t = new Test(40);
    }
}
3.
In Java, ______________________________ is the return type of a method that does not return any value.
4.
In Java, which of the following modifiers cannot be used for constructors?
5.
In Java, ________________________ variables are declared for the use of all methods in a class.
6.
What is the output of the following Java code:
class Test {
    Test(float y) {
        System.out.println(y);
    }
    public static void main(String[] args) {
        Test num = new Test(2);
    }
}
7.
In Java, which of the following methods has the same name as its class?
8.
In Java, which of the following is an unchecked exception?
9.
In Java, the _______________________________ method is used to start the execution of a thread.
10.
In Java, which of the following always returns the object in a sorted manner?