[試題] 97下 陳俊良 物件導向程式設計 期末考

看板NTU-Exam作者 (小倫)時間15年前 (2009/06/15 11:17), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
課程名稱︰物件導向程式設計 課程性質︰系定必修 課程教師︰陳俊良 開課學院:電資學院 開課系所︰資訊工程學系 考試日期(年月日)︰2009/6/15 10:00~12:00 考試時限(分鐘):120分鐘 是否需發放獎勵金:是 試題 : Examination of Object-Oriented Programming 2009/06/15, NTUCS&IE 1. As we know, abstract classes cannot be instantiated. Can abstract classes have constructors? Explain your reason briefly (at most 5 lines). [5%+10%] 2. A way to create a thread is to declare a new class, say MyThread, that extends class Thread. Class MyThread then overrides the run() method. For example, class MyThread extends Thread { public void run() { // the code of the new thread } } The following code would then create a thread and start it running. new MyThread().start(); If you forget to override the run() method, what will happen? Explain your reason briefly (at most 5 lines). [5%+10%] 3. Is it possible that, at a time, one thread invokes a synchronized method while the other thread invokes another synchronized method of the same class? Explain your reason briefly (at most 5 lines). [5%+10%] 4. Please describe the exception handling mechanism of Java (at most 10 lines). [15%] 5. Please describe the operation of event-listener programming model (at most 10 lines). [15%] 6. Please describe the concept of object-oriented programming in detail (no line limitation). [25%] -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.204.86.9

06/15 12:03, , 1F
喔手腳真快XD想必您也提早交卷
06/15 12:03, 1F
文章代碼(AID): #1ADRrDWZ (NTU-Exam)