Topic: 版主、各位先進大家好! |
Print this page |
1.版主、各位先進大家好! | Copy to clipboard |
Posted by: skyler Posted on: 2002-09-18 00:25 版主、各位先進大家好! 我是從台灣來的,因綠際會下正好來到此,在此吸收了各位寶貴的經驗,真是謝謝各位! 最近寫147題時遇到些問題,想跟各位請益,謝謝! 第11題: 11. Which two demonstrate an “is a” relationship? (Choose Two) A. public interface Person { } public class Employee extends Person { } B. public interface Shape { } public class Employee extends Shape { } C. public interface Color { } public class Employee extends Color { } D. public class Species { } public class Animal (private Species species E. interface Component { } Class Container implements Component ( Private Component[ ] children; ) 為什麼答案有D? D的關係不是"has a"的關係嗎? 第55題: 55. Which two CANNOT directly cause a thread to stop executing? (Choose Two) A. Calling the yield method B. Calling the wait method on an object C. Calling the notify method on an object D. Calling the NotifyAll method on an object E. Calling the start method on another Thread object Testing King 的答案為CD 可是我看一位先進所公佈的答案為AE 想向各位請教一下,答案及原因? 最後感謝各位! |
2.回复: 版主、各位先進大家好! [Re: skyler] | Copy to clipboard |
Posted by: SimonLei Posted on: 2002-09-20 11:18 11题,动物是一种物种,所以是is关系,而不是has 55题,我怎么觉得都不会直接让线程STOP? |
3.回复: 回复: 版主、各位先進大家好! [Re: SimonLei] | Copy to clipboard |
Posted by: SimonLei Posted on: 2002-09-20 11:24 SimonLei wrote: 明白了,是stop executing A. Calling the yield method 降低自己优先级,让别人去抢占CPU资源 B. Calling the wait method on an object 等待 C. Calling the notify method on an object 这个只是通知在这个object上等待得其他线程,自己并不停止。下同 D. Calling the NotifyAll method on an object E. Calling the start method on another Thread object 这个不太清楚, 应该只是启动另外一个线程而已。 |
4.回复: 版主、各位先進大家好! [Re: skyler] | Copy to clipboard |
Posted by: skyler Posted on: 2002-09-21 00:02 E的答案應該不會停止本身的執行,那麼答案為何不選E,還是說從CDE比較起來,CD的答案比較好呢? 最後,謝謝您詳細的回答! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |