Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- function
- react
- MIPS
- Java
- python
- DoM
- CSS
- DATAPATH
- Algorithm
- Class
- while
- control
- MacOS
- mysql
- system
- data structure
- github
- html
- php
- architecture
- DS
- DB
- Pipelining
- Linux
- web
- javascript
- computer
- XML
- instruction
- for
Archives
- Today
- Total
목록handling (1)
YYYEJI
[JAVA] 예외처리(try-catch, throw, finally)란?
예외상황(Exception handling)이란? 코드를 작성하다가 보면 많은 오류가 등장합니다. 오류가 날 때 에러(error)를 다른 방식으로 처리하고 싶을 때 적절한 방식으로 처리하는 것을 예외상황이라고 합니다. 예외상황 관련된 용어 Throwing an Exception 어떤 일이 일어났을 때 던져지는 코드 Handling an Exception / Catching an Exception 예외 상황에 응답(대응)하는 코드 예외상황을 다룰 때는 try-catch문을 사용합니다. try { if (test condition) { throw new Exception("Message to display"); } catch(Exception e) { }..
Java
2022. 12. 27. 18:03