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, which of the following methods is used to retain the t thread in the run state?
3.
What is the result of the piece of code below?
 
public class Test {
    public static void main(String args[]) {
        Person p = new Student();
        p.talk();
    }
}
4.
What is the output of the following Java code:
class Men {
    public int number;
}

public class Test {
    public void doIt(int i, Men p) {
        i = 5;
        p.number = 8;
    }

    public static void main(String args[]) {
        int x = 0;
        Men p = new Men();
        new Test().doIt(x, p);
        System.out.println(x + " " + p.number);
    }
}
5.
In Java, how is an object serialized?
6.
In Java, which of the following interfaces is used to save unique elements in collections and to enable accessibility in the natural order?
7.
What is the output of the following Java code:
class A {
    final public int GetResult(int a, int b) {
        return 0;
    }
}
class B extends A {
    public int GetResult(int a, int b) {
        return 1;
    }
}
public class Test {
    public static void main(String args[]) {
        B b = new B();
        System.out.println("x = " + b.GetResult(0, 1));
    }
}
8.
In Java, which of the following is a valid declaration within an interface definition?
9.
In Java, which of the following statements about the static nested class is correct?
10.
In Java, which of the following is the correct representation of a method in the abstract class?