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.isAlive());
}
}

[A] 0
[B] 1
[C] true
[D] false
Loading...
Next Question

Overall Stats

Attempted 193
Correct 5
Incorrect 116
Viewed 72

Answers

Guest
Guest
Sagar Gawari
Sagar Gawari - 3 weeks ago

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

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

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

rayapudi saiteja
rayapudi saiteja - 3 months ago

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

Sanju Hruthik
Sanju Hruthik - 4 months ago

Sanju Hruthik is saying true is correct answer

Nusrath Fatima
Nusrath Fatima - 6 months ago

Nusrath Fatima is saying true is correct answer

Related Questions

What will happen if two thread of same priority are called to be processed simultaneously?

  • [A] Any one will be executed first lexographically
  • [B] Both of them will be executed simultaneously
  • [C] None of them will be executed
  • [D] It is dependent on the operating system.

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.