📄 toc.txt
字号:
异常处理块的通常形式:
try {
// block of code to monitor for errors
}
catch (ExceptionType1 exOb) {
// exception handler for ExceptionType1
}
catch (ExceptionType2 exOb) {
// exception handler for ExceptionType2
}
finally {
// block of code to be executed before try block ends
}
这里,ExceptionType 是发生异常的类型。下面将介绍怎样应用这个框架。
Java: The Complete Reference
Author Patrick Naughton, Herbert Schildt, Herb Schildt
Subject Java
Pages 1108
Price $31.99
Publisher McGraw Hill
Rating
Category Intermediate
Part I: The Java Language.
Chapter 1: The Genesis of Java.
Chapter 2: An Overview of Java.
Chapter 3: Data Types, Variables, and Arrays.
Chapter 4: Operators.
Chapter 5: Control Statements.
Chapter 6: Introducing Classes.
Chapter 7: A Closer Look at Methods and Classes.
Chapter 8: Inheritance.
Chapter 9: Packages and Interfaces.
Chapter 10: Exception Handling.
Chapter 11: Multithreaded Programming.
Chapter 12: I/O, Applets, and Other Topics.
Part II: The Java Library.
Chapter 13: String Handling.
Chapter 14: Exploring java.lang.
Chapter 15: java.util, Part 1: The Collections Framework.
Chapter 16: java.util, Part 2: More Utility Classes.
Chapter 17: Input/Output: Exploring java.io.
Chapter 18: Networking.
Chapter 19: The Applet Class.
Chapter 20: Event Handling.
Chapter 21: Introducing the AWT.
Chapter 22: Using AWT Controls, Layout Managers, and Menus.
Chapter 23: Images.
Chapter 24: Additional Packages.
Part III: Software Development Using Java.
Chapter 25: Java Beans.
Chapter 26: A Tour of Swing.
Chapter 27: Servlets.
Chapter 28: Migrating from C++ to Java.
Part IV: Applying Java.
Chapter 29: The DynamicBillboard Applet.
Chapter 30: ImageMenu: An Image-Based Web Menu.
Chapter 31: The Lavatron Applet.
Chapter 32: Scrabblet: A Multiplayer Word Game.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -