MCQOPTIONS
Saved Bookmarks
| 1. |
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()); } } |
| A. | main |
| B. | Thread one |
| C. | Thread |
| D. | Name |
| E. | None of these |
| Answer» C. Thread | |