Given that a static method doIt() in a class Work represents work to be done, what block of code will succeed in starting a new thread that will do the work? CODE BLOCK a: Runnable r = new Runnable() { public void run() { Work.doIt(); } }; Thread t = new Thread(r); t.start(); CODE BLOCK b: Thread t = new Thread() { public void start() { Work.doIt(); } }; t.start(); CODE BLOCK c: Runnable r = new Runnable() { public void run() { Work.doIt(); } }; r.start(); CODE BLOCK d: Thread t = new Thread(new Work()); t.start(); CODE BLOCK e: Runnable t = new Runnable() { public void run() { Work.doIt(); } }; t.run();
A. Code block a.
B. Code block
Code block c.
D. Code block d.
E. Code block e.
假设未来经济有四种可能状态:繁荣、正常、衰退、萧条,对应地发生的概率是0.2,0.4,0.3,0.1。某理财产品在四种状态下的收益率分别是9%,12%,10%,5%,则该理财产品的期望收益率是()
A. 8.5 %
B. 9.1%
C. 9.8%
D. 10.1%