# Uses of Interface
java.lang.Thread.Builder

Packages that use Thread.Builder
Package
Description
java.lang
Provides classes that are fundamental to the design of the Java programming language.

- ## Uses of Thread.Builder in java.lang

  Subinterfaces of Thread.Builder in java.lang
  Modifier and Type
  Interface
  Description
  `static interface`
  `Thread.Builder.OfPlatform`
  A builder for creating a platform `Thread` or `ThreadFactory` that creates platform threads.
  `static interface`
  `Thread.Builder.OfVirtual`
  A builder for creating a virtual `Thread` or `ThreadFactory` that creates virtual threads.
  Methods in java.lang that return Thread.Builder
  Modifier and Type
  Method
  Description
  `Thread.Builder`
  Thread.Builder.`inheritInheritableThreadLocals(boolean inherit)`
  Sets whether the thread inherits the initial values of inheritable-thread-local variables from the constructing thread.
  `Thread.Builder`
  Thread.Builder.`name(String name)`
  Sets the thread name.
  `Thread.Builder`
  Thread.Builder.`name(String prefix, long start)`
  Sets the thread name to be the concatenation of a string prefix and the string representation of a counter value.
  `Thread.Builder`
  Thread.Builder.`uncaughtExceptionHandler(Thread.UncaughtExceptionHandler ueh)`
  Sets the uncaught exception handler.