MCQOPTIONS
Bookmark
Saved Bookmarks
→
Java Programming
→
Exceptions
→
What is the priority of the thread in output of th...
1.
What is the priority of the thread in output of this program?
A.
0
B.
1
C.
2
D.
4
E.
5
Answer» F.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What is the output of this program?class newthread implements Runnable { Thread thread; newthread() { thread = new Thread(this,"New Thread created..."); thread.start(); } public void run() { System.out.println(thread); } } public class multithreaded_Example { public static void main(String args[]) { new newthread(); } }
What is the output of this program?class newthread implements Runnable { Thread thread; newthread() { thread = new Thread(this,"My Thread created..."); thread.start(); } public void run() { System.out.println(thread.getName()); } } public class multithreaded_Example { public static void main(String args[]) { new newthread(); } }
What is the output of this program?class newthread implements Runnable { Thread thread; newthread() { thread = new Thread(this,"My Thread"); thread.start(); } } public class multithreaded_Example { public static void main(String args[]) { new newthread(); } }
What is the output of this program?class Mythread extends Thread { Mythread() { super("New Thread..."); start(); } public void run() { System.out.println(this); } } public class multithreaded_programing { public static void main(String args[]) { new Mythread(); } }
What is the output of the thread in output of this program?public class Output { public static void main(String args[]) { Thread thread = Thread.currentThread(); System.out.println(thread.isAlive()); } }
What is the name of the thread in output of this program?public class multithreading_NameExample { public static void main(String args[]) { Thread thread = Thread.currentThread(); thread.setName("Thread One"); System.out.println(thread.getName()); } }
What is the priority of the thread in output of this program?public class multithreaded_PriorityExample { public static void main(String args[]) { Thread thread = Thread.currentThread(); thread.setName("Thread One"); System.out.println(thread.getPriority()); } }
What is the output of this program?public class multithreading_Example { public static void main(String args[]) { Thread thread = Thread.currentThread(); thread.setName("Thread one"); System.out.println(thread); } }
What is the name of the thread in output of this program?public class multithreaded_Name { public static void main(String args[]) { Thread thread = Thread.currentThread(); thread.setName("First"); System.out.println(thread); } }
What is the priority of the thread in output of this program?public class multithreading_Priority { public static void main(String args[]) { Thread thread = Thread.currentThread(); System.out.println(thread); } }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies