I've seen several different ways to make a new Thread, but there's one way I've seemingly forgot about, and can't find many examples of it, and I'd like to compare it to another way:
This one I've seemed to forgotten about, I'm not sure if it requires to implement Runnable or not:
new Thread()
{
public void run()
{
System.out.println("running");
}
};
vs.
new Thread(new Runnable()
{
public void run()
{
System.out.println("Running");
}
});
Differences? Advantages disadvantages?
and when should I make an anonymous Thread, vs when to implement Runnable?