1.  A process can be


single threaded
multithreaded
both (a) and (b)
none of the mentioned


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  Analyze the following code:
public abstract class Test implements Runnable{
public void doSomething() { };
}


The program will not compile because it does not implement the run() method.
The program will not compile because it does not contain abstract methods.
The program compiles fine.
None of the above


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  If one thread opens a file with read privileges then


other threads in the another process can also read from that file
other threads in the same process can also read from that file
any other thread can not read from that file
all of the mentioned


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  Public class MyRunnable implements Runnable
{
public void run()
{
}
}
Which of these will create and start this thread ?


new Thread(MyRunnable).run();
new Thread(new MyRunnable()).start();
new Runnable(MyRunnable).start();
new MyRunnable().start();


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  The time required to create a new thread in an existing process is


greater than the time required to create a new process
less than the time required to create a new process
equal to the time required to create a new process
none of the mentioned


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report