GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #414 from yellowgg/master · luyuhui0209/JavaGuide@3355561

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs/java
    • J2EE基础知识.md
    • Java基础知识.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/java/J2EE基础知识.md‎

Copy file name to clipboardExpand all lines: docs/java/J2EE基础知识.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Servlet接口定义了5个方法,其中**前三个方法与Servlet生命周期
5959

6060
- `void init(ServletConfig config) throws ServletException`
6161
- `void service(ServletRequest req, ServletResponse resp) throws ServletException, java.io.IOException`
62-
- `void destory()`
62+
- `void destroy()`
6363
- `java.lang.String getServletInfo()`
6464
- `ServletConfig getServletConfig()`
6565

Collapse file

‎docs/java/Java基础知识.md‎

Copy file name to clipboardExpand all lines: docs/java/Java基础知识.md
+4-3Lines changed: 4 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,10 @@ final关键字主要用在三个地方:变量、方法、类。
419419

420420
### 异常处理总结
421421

422-
- **try 块:**用于捕获异常。其后可接零个或多个catch块,如果没有catch块,则必须跟一个finally块。
423-
- **catch 块:**用于处理try捕获到的异常。
424-
- **finally 块:**无论是否捕获或处理异常,finally块里的语句都会被执行。当在try块或catch块中遇到return语句时,finally语句块将在方法返回之前被执行。
422+
- **try 块:** 用于捕获异常。其后可接零个或多个catch块,如果没有catch块,则必须跟一个finally块。
423+
- **catch 块:** 用于处理try捕获到的异常。
424+
- **finally 块:** 无论是否捕获或处理异常,finally块里的语句都会被执行。当在try块或catch块中遇到return
425+
语句时,finally语句块将在方法返回之前被执行。
425426

426427
**在以下4种特殊情况下,finally块不会被执行:**
427428

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.