문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
|
wiki:miscellaneous:code_conventions:statements [2022/04/22 12:30] emblim98 만듦 |
wiki:miscellaneous:code_conventions:statements [2023/01/13 18:44] (현재) |
||
|---|---|---|---|
| 줄 127: | 줄 127: | ||
| </ | </ | ||
| \\ | \\ | ||
| - | ('' | + | ('' |
| - | + | \\ | |
| - | 모든 switch 문에는 기본 케이스가 포함되어야 합니다. 기본 케이스의 | + | 모든 |
| - | + | \\ | |
| - | + | ===== 7.9 try-catch 문 ===== | |
| - | + | **'' | |
| - | + | \\ | |
| - | + | <code java> | |
| - | + | try { | |
| - | + | | |
| - | + | } catch (ExceptionClass e) { | |
| - | + | | |
| - | + | } | |
| - | + | </ | |
| - | + | \\ | |
| - | + | \\ | |
| - | + | **'' | |
| - | + | \\ | |
| + | <code java> | ||
| + | try { | ||
| + | statements; | ||
| + | } catch (ExceptionClass e) { | ||
| + | statements; | ||
| + | } finally { | ||
| + | statements; | ||
| + | } | ||
| + | </ | ||
| ===== Ref Site ===== | ===== Ref Site ===== | ||