i'm currently studying Java and i want to know what is the difference between implementing Runnable to a class and declaring a new thread and executing what you need inside.
Thread t = new Thread(){
public void run() {
//code here
}
};
t.start();
vs
Thread t = new Thread(My_class_with_runnable_implementation);
t.start();