Solved

Suppose That the Class XYZ Implements the Interface Runnable

Question 48

Multiple Choice

Suppose that the class XYZ implements the interface Runnable. Which code creates a thread object and makes it available to the scheduler to be executed?


A) Thread t = new Thread(new XYZ() ) ;
t.start() ;
B) XYZ t = new Thread(new XYZ() ) ;
t.start() ;
C) new XYZ() .start() ;
D) Thread t = new XYZ(new Thread() ) ;
t.start() ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions