5 years ago in Java Multithreading

What is the priority of the thread in output of this program?

class multithreaded_programing {
public static void main(String args[]) {
Thread t = Thread.currentThread();
System.out.println(t);
}
}

[A] 4
[B] 5
[C] 0
[D] 1
Loading...
Next Question

Overall Stats

Attempted 189
Correct 110
Incorrect 10
Viewed 69

Answers

Guest
Guest
Sagar Gawari
Sagar Gawari - 4 weeks ago

Sagar Gawari from Pune, India is saying 5 is correct answer

Poorna Hari priya Muttamsetty
Poorna Hari priya Muttamsetty - 3 months ago

Poorna Hari priya Muttamsetty from Vijayawada, India is saying 5 is correct answer

rayapudi saiteja
rayapudi saiteja - 3 months ago

rayapudi saiteja from Visakhapatnam, India is saying 5 is correct answer

Deepak Pastey
Deepak Pastey - 8 months ago

Deepak Pastey from Mumbai, India is saying 4 is correct answer

pavithra p
pavithra p - 8 months ago

pavithra p from Bengaluru, India is saying 5 is correct answer

Related Questions

Which of these interface is implemented by Thread class?

  • [A] Runnable
  • [B] Connections
  • [C] Set
  • [D] MapConnections

What is multithreaded programming?

  • [A] It's a process in which two different processes run simultaneously.
  • [B] It's a process in which two or more parts of same process run simultaneously.
  • [C] Its a process in which many different process are able to access same information.
  • [D] Its a process in which a single process can access information from many sources.