In Java, you can create a thread in two ways: by implementing the Runnable interface or by extending the Thread class.