an UncaughtExceptionHandler can be specified in the constructor if uncaught exceptions need to be caught. If the NamedThreadFactory is used with an ExecutorService then the exceptions are caught and stashed away, so there is no point in using specifying an UncaughtExceptionHandler in those cases.
@author Steven Ihde
@version $Revision: $

A {@link ThreadFactory} that sets names to the threads created by this factory. Threads created by this factorywill take names in the form of the string namePrefix + " thread-" + threadNum where threadNum is the count of threads created by this type of factory.
@author Abhishek Sanoujam

A default {@link ThreadFactory} implementation that accepts the name prefixof the created threads as a constructor argument. Otherwise, this factory yields the same semantics as the thread factory returned by {@link Executors#defaultThreadFactory()}.