What is “inline thread”?

I believe it refers to the practice of creating an anonymous class extending Thread and calling its start method in the same line of code.

(new Thread() {
  public void run() {
    // do stuff
  }
 }).start();

As stated elsewhere, this is not an “official” Java term. But I think it’s still good to know how concepts might be referred to differently, if only for the sake of communication.

Leave a Comment