在Java中,Thread类的方法中, getName()方法的作用是

在Java中,Thread类的方法中, getName()方法的作用是

A.返回线程组的名称

B.设置线程组的名称

C.返回线程的名称

D.设置线程的名称

正确答案是C