new Runnable() but no new thread?

前端 未结 8 2171
名媛妹妹
名媛妹妹 2020-12-08 11:11

I\'m trying to understand the code here , specifically the anonymous class

private Runnable mUpdateTimeTask = new Runnable() {
public void run() {
   final l         


        
8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-08 11:41

    Runnable is just an interface, which provides the method run. Threads are implementations and use Runnable to call the method run().

提交回复
热议问题