[[JAVAの復習]] [[Javaの復習]] * Javaの復習(2) [#p6410e9e] ** Thead [#m1b6d9b9] Java での thread の実行には二つの方法がある。 - Thead class を継承した class の object を作り、start() method を呼び出す。 - Runnable interface を実装した class を作り、その class の object を引数とする Thread object を作り、start() method を呼び出す。 前者の場合は、run() method を override する。この run() method は start() method から呼び出される。 後者の場合、Runnable interface は run() method のみであり、この method を実装する。