5 years ago in Java Multithreading

What is the name 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] main
[B] Thread
[C] System
[D] None of the mentioned
Loading...
Next Question

Overall Stats

Attempted 188
Correct 74
Incorrect 47
Viewed 67

Answers

Guest
Guest
Sagar Gawari
Sagar Gawari - 3 weeks ago

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

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

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

Narmada Devi
Narmada Devi - 3 months ago

Narmada Devi from Coimbatore, India is saying Thread is correct answer

rayapudi saiteja
rayapudi saiteja - 3 months ago

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

rayapudi saiteja
rayapudi saiteja - 3 months ago

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

Related Questions

Which of these statements is incorrect?

  • [A] By multithreading CPU's idle time is minimized, and we can take maximum use of it.
  • [B] By multitasking CPU's idle time is minimized, and we can take maximum use of it.
  • [C] Two thread in Java can have same priority
  • [D] A thread can exist only in two states, running and blocked.

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.