1.
In Java, which of the following is the most restrictive access specifier that allows sub classes in any package to access the members of a super class?
2.
In Java, prototype of the default constructor is _______________________________.
3.
The following Java code does not compile successfully because __________________________________________________.
class cube {
    int w;
    int h;
    int l;
}
class example {
    public static void main(String args[]) {
        cube ob = new cube();
        System.out.println(ob);
    }
}
4.
In Java, which of the following methods is used by the Object class to obtain run time class of its instances?
5.
In Java, which of these classes can never be a subclass?
6.
In C++, the auto-increment (++) and the auto-decrement (--) operators work on floating-point values.
7.
What is the output of the following Java code:

public class Two {

    public static void main(String args[]) {
        int z = 8;
        z += --z;
        System.out.println("Value of z : " + z);
    }
}
8.
What is the output of the following Java code:
class TestClass {

    public static void main(String args[]) throws Exception {
        String d = "java ";
        d += d;
        d += "world of ";
        d.concat("programming ");
        System.out.println(d);
    }
}
9.
What is the output of the following Java code:
class TestClass {

    public static void main(String args[]) throws Exception {
        String d = "java ";
        d += d;
        d += "world of ";
        d.concat("programming ");
        System.out.println(d);
    }
}
10.
What is the output of the following Java code:
import java.util.*;
class {
    public static void main(String[] args) {
        int x = 5;
        while (x < 10) {
            System.out.print(x);
            x++;
        }
    }
}