Assertion 이란? Assertion? Programmer 자신이 전개하고 있는 Code 내용에서 Programmer가 생각하고 있는 움직임과 그리고 특정 지점에서의 Program상의 설정 값들이 일치하고 있는지를 검사할 수 있도록 하는 것이 바로 Assertion이다. 예로 어느 특정 method의 Arguement 값은 10이상이어야 한다는 Programmer의 확고함이 있다고 하자! 이럴 때 Assertion을 사용하여 Programmer가 주장하는 확고함을 조건으로 명시하고 그 조건을 만족할 때만 Code가 실행할 수 있도록 하는 것이 Assertion이다. Assertion과 exception(Exception)의 차이점은? Exception은 특정한 Code에서 exception가 발생하..
※ 일반 복사 방법 (JDK 1.4이전 IO 패키지 이용) import java.io.*; public static void copyFile(String source, String target) throws IOException { FileInputStream fis = new FileInputStream(source); FileOutputStream fos = new FileOutputStream(target); try { byte[] buf = new byte[1024]; int i = 0; while ((i = fis.read(buf)) != -1) { fos.write(buf, 0, i); } } catch (IOException e) { throw e; } finally { if (fis != ..
- Total
- Today
- Yesterday
- 제이쿼리
- jquery
- 항공편
- Click
- javascript
- 인천공항
- Oracle
- android
- create
- attr
- Drop
- 비행기
- asp
- submit
- 실시간
- regexp
- dom
- If
- Next
- select
- Selector
- jsp
- event
- html
- ready
- focus
- 기초
- MySQL
- centOS
- Filter
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |