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