正在加载图片...
Handling exceptions r An exception occurs when any of the semantic constraints of the Java language is violated An exception is said to be thrown and caught When our program calls a statement that can throw an exception we must write a code to either o propagate the thrown exception or o handle it by the try-block statement C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 11-13© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 11 - 13 Handling Exceptions An exception occurs when any of the semantic constraints of the Java language is violated. An exception is said to be thrown and caught . When our program calls a statement that can throw an exception, we must write a code to either propagate the thrown exception or handle it by the try-block statement
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有