Runnableはrun methodをもつfunctional interface
constructor of Threadにrunnableを引き渡す
public class Outer {
public static void main(String[] args) {
Thread t = new Thread(new Runnable() {
public void run() {
System.out.println(" i am run method");
}
});
t.start();
}
}
i am run method