1.
The default priority number of the thread in the following Java code is _________________________.
class example {
    public static void main(String args[]) {
        Thread t = Thread.currentThread();
        System.out.println(t);
    }
}
2.
In Java, which of the following statements is not true?
3.
In Java, which of the following methods belong to the Object class:

  1. notify();
  2. notifyAll();
  3. isInterrupted();
  4. synchronized();
4.
Which of the following packages is used for handling security issues in a Java program?
5.
In Java, the following loop is valid:
while(1)
{

//some code

}
6.
In Java, which of the following methods is defined by a class for implementing the java.lang.Runnable interface?
7.
Which of the following classes is not used by character streams for input and output operations in Java?
8.
What action will be performed by finally in the below code?
try {
    //some code
    return ();
} finally {
    //some code
}
9.
In Java, statements ___________________ and ____________________ are equivalent.

  1. 3/2
  2. 3<<2
  3. 3*4
  4. 3<<<2
10.
In Java, what is the base class for errors and exceptions?