public NamedThreadFactory(String namePrefix){
  this.namePrefix=Objects.requireNonNull(namePrefix);
  group=getThreadGroup();
  daemon=true;
}

public NamedThreadFactory ( String namePrefix ) { this . namePrefix = Objects . requireNonNull ( namePrefix ) ; group = getThreadGroup ( ) ; daemon = true ; }
creates a daemon thread with the specified name prefix . thread names will be nameprefix - < threadid > . thread id is incremented each time a thread is created using this factory .
