The static method currentThread() from the type Thread should be accessed in a static way

2025-05-02 08:51:03
推荐回答(1个)
回答(1):

它指的是currentThread()方法是个静态方法,用静态方式去访问,不是类的实例去调用。
你可以不管它,或者用Thread.currentThread().getName();