News

Had I not provided these explicit names in the example (which the original example in the Java Tutorials did not do), they would have been referenced by the more generic names “Thread-0” and ...
The main thread is a good example of a non-daemon thread. Code in main() will be always be executed until the end, unless a System.exit() forces the program to complete.