This class lists all the currently active threads in a JVM. Note how the number of JVM-internal threads increases once GUI objects are used. If the code is part of a server application (like a web app), there will be even more threads.
CodeBarn CategoryCodeSamples