ExamVeda
Login
Home
81
Deadlock is a situation when thread is waiting for other thread to release acquired object.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
82
What will happen if two thread of the same priority are called to be processed simultaneously?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
83
What is the name of the thread in output in the following Java program?
class multithreaded_programing
{
    public static void main(String args[])
    {
        Thread t = Thread.currentThread();
        System.out.println(t.isAlive());        
    }
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
84
What is the name of the thread in output in the following Java program?
class multithreaded_programing
{
    public static void main(String args[])
    {
        Thread t = Thread.currentThread();
        System.out.println(t.getPriority());        
    }
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
85
What is multithreaded programming?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
86
Which of these are types of multitasking?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
87
What will be the output of the following Java program?
class newthread extends Thread
{
Thread t;
String name;
newthread(String threadname)
    {
  name = threadname;
  t = new Thread(this,name);
  t.start();
}
public void run()
    {
    }

}
class multithreaded_programing
{
    public static void main(String args[])
    {
  newthread obj1 = 	 new newthread("one");
  newthread obj2 =	 new newthread("two");
        try
        {
             System.out.print(obj1.t.equals(obj2.t));
        }
        catch(Exception e)
        {
  System.out.print("Main thread interrupted");
        }
    }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
88
What is the default value of priority variable MIN_PRIORITY AND MAX_PRIORITY?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
89
Which of these method is used to implement Runnable interface?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
90
Which of these method of Thread class is used to Suspend a thread for a period of time?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board