Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Starting a new Thread

  Asked By: Gin    Date: Jan 21    Category: Java    Views: 922

Sometimes I want to start a task in a new thread. Usually I just use the
following code:

(new Thread() {
public void run() {
//some code

Is it safe? Is there a better way?



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Starting a new Thread Or get search suggestion and latest updates.