Email address:
SCJP/OCPJP 1.6 certification
Practice Exams and Training
SCJP Online Training » Discussions

Thread constructor in the question


Please explain why the following are valid:

Thread rba=new Thread(new Thread(new A()));

Thread rbb=new Thread(new Thread(new A()));

the inner new returnes a Thread object.

But then , I cannot find any constructor of Thread class taking as parameter a Thread object.

thanks in advance,


ExamLab © 2008 - 2024