正在加载图片...
以课堂讲授为主。 第十章Exception (一)目的与要求 1.Discuss the purpose of exceptions. 2.Examine exception messages and the call stack trace. 3.Examine the try-catch statement for handling exceptions. 4.Explore the concept of exception propagation. 5.Describe the exception class hierarchy in the lava standard class library. 6.Explore I/0 exceptions and the ability to write text files. (二)教学内容 第一节Exception Handling 1.主要内容 (1)The purpose of exception (2)Three ways of exception handing (3)Uncaught exceptions (4)The try-catch statement (5)Exception propagation (6)The exception class hierarchy 2.基本概念和知识点 (1)Errors and exceptions are objects that represent unusual or invalid processing. (2)The messages printed when an exception is thrown provide a method call stack trace (3)Each catch clause handles a particular kind of exception that may be thrown within the try block. (4)The finally clause is executed whether the try block is exited normally or because of a thrown exception. (5)If an exception is not caught and handled where it occurs, it is propagated to the calling method. (6)A programmer must carefully consider how and where exceptions should be handled,if at all. (7)A new exception is defined by deriving a new class from the Exception class or one of its descendants. 26 26 以课堂讲授为主。 第十章 Exception (一)目的与要求 1.Discuss the purpose of exceptions. 2.Examine exception messages and the call stack trace. 3.Examine the try-catch statement for handling exceptions. 4.Explore the concept of exception propagation. 5.Describe the exception class hierarchy in the Java standard class library. 6.Explore I/O exceptions and the ability to write text files. (二)教学内容 第一节 Exception Handling 1.主要内容 (1) The purpose of exception (2) Three ways of exception handing (3) Uncaught exceptions (4) The try-catch statement (5) Exception propagation (6) The exception class hierarchy 2.基本概念和知识点 (1) Errors and exceptions are objects that represent unusual or invalid processing. (2) The messages printed when an exception is thrown provide a method call stack trace. (3) Each catch clause handles a particular kind of exception that may be thrown within the try block. (4) The finally clause is executed whether the try block is exited normally or because of a thrown exception. (5) If an exception is not caught and handled where it occurs, it is propagated to the calling method. (6) A programmer must carefully consider how and where exceptions should be handled, if at all. (7) A new exception is defined by deriving a new class from the Exception class or one of its descendants
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有