'Programming > php' 카테고리의 다른 글
php5 class / object oriented programming (4) | 2014.07.07 |
---|---|
웹소켓 (websocket) (0) | 2014.07.03 |
php framework / 읽을꺼리 (0) | 2014.04.09 |
php 메뉴얼 (0) | 2014.03.28 |
php $_SERVER 변수 (0) | 2013.07.07 |
php5 class / object oriented programming (4) | 2014.07.07 |
---|---|
웹소켓 (websocket) (0) | 2014.07.03 |
php framework / 읽을꺼리 (0) | 2014.04.09 |
php 메뉴얼 (0) | 2014.03.28 |
php $_SERVER 변수 (0) | 2013.07.07 |
데이터베이스 순환참조 (0) | 2017.05.20 |
---|---|
데이터베이스 1:n 관계 구현 (0) | 2016.02.29 |
데이터베이스 - 키 관련 (0) | 2014.04.28 |
카티젼 프로덕트, join (0) | 2014.04.26 |
database 1:N 구성? (0) | 2014.04.15 |
부트스트랩 - 웹개발 프레임워크 (0) | 2014.07.07 |
---|---|
jsp / php 기본 문법 비교 (0) | 2014.07.07 |
sql designer(web) (0) | 2014.05.11 |
호스팅어 / 무료 웹 호스팅 (4) | 2014.04.27 |
ie8 과 크롬의 html 태그 파싱 차이점 (0) | 2014.04.10 |
1) Unchecked Exception
The exceptions that are not checked at compile time are called unchecked exceptions, classes that extends RuntimeException comes under unchecked exceptions. Examples of some unchecked exceptions are listed below.
2) Checked Exceptions
Exceptions that are checked at compile-time are called checked exceptions, in Exception hierarchy all classes that extends Exception class except UncheckedException comes under checked exception category.
|
A checked exception is an exception that must be either caught or declared in a method where it can be thrown. For example, the java.io.IOExceptionis a checked exception. To understand what is a checked exception, consider the following code: |
Unchecked, uncaught or runtime exceptions are exceptions that are not required to be caught or declared, even if it is allowed to do so. So a method can throw a runtime exception, even if this method is not supposed to throw exceptions. For example, ConcurrentModificationException is an unchecked exception.
The unchecked exceptions can only be the RuntimeException and its subclasses, and the class Error and its subclasses. All other exception classes must be handled, otherwise the compiler gives an error.
Sometime it is desirable to catch all exception for logging purposes, then throw it back on. For example, in servlet programming when application server calls the server doPost(), we want to monitor that no exception even runtime exception happened during serving the request. The application has its own logging separate from the server logging. The runtime exceptions would just go through without detecting it by the application. The following code would check all exceptions, log them, and throw it back again.
|
predefined annotation /java (0) | 2014.06.27 |
---|---|
JUnit tutorial (0) | 2014.06.27 |
Class.forName (0) | 2014.05.09 |
JDNI - Java Directory & Naming Interface (0) | 2014.05.09 |
jdk 1.5 - annotation / @ (0) | 2014.05.08 |
CSS / JS 파일 용량 줄이기 (0) | 2015.09.18 |
---|---|
css selector (0) | 2015.09.14 |
css 관련 (4) | 2015.09.08 |
크롬과 IE에서 CSS 차이점 - body / background-color (2) | 2011.03.09 |
CSS Naked day! (2) | 2009.04.09 |
테이블을 생성하고 필드를 생성하고
폴린키로 사용할 필드(즉, 다른 테이블의 시퀀스/autoincrement)를 누를경우 활성화 되는
Create foreign key / connect foreign key
connect의 경우 시퀀스 -> 연결할 키의 순서로 해주면된다.
db table 생성도 척척!
썩 나쁘지는 않아 보인다.
jsp / php 기본 문법 비교 (0) | 2014.07.07 |
---|---|
post 방식과 get 방식의 차이점(cache) (0) | 2014.05.15 |
호스팅어 / 무료 웹 호스팅 (4) | 2014.04.27 |
ie8 과 크롬의 html 태그 파싱 차이점 (0) | 2014.04.10 |
NoSQL (0) | 2014.04.09 |
JUnit tutorial (0) | 2014.06.27 |
---|---|
java unchecked/checked exception (0) | 2014.05.15 |
JDNI - Java Directory & Naming Interface (0) | 2014.05.09 |
jdk 1.5 - annotation / @ (0) | 2014.05.08 |
java <-> c 상호호출 (0) | 2014.03.25 |
java unchecked/checked exception (0) | 2014.05.15 |
---|---|
Class.forName (0) | 2014.05.09 |
jdk 1.5 - annotation / @ (0) | 2014.05.08 |
java <-> c 상호호출 (0) | 2014.03.25 |
java TCP/UCP socket (0) | 2014.03.25 |
ORM - Object-relational mapping (0) | 2014.05.20 |
---|---|
apache velocity (0) | 2014.05.19 |
EL(Expression Language)$와 # (0) | 2014.04.30 |
POJO - Plain Old Java Object (0) | 2014.04.29 |
thread-safe singleton (0) | 2014.04.25 |
Class.forName (0) | 2014.05.09 |
---|---|
JDNI - Java Directory & Naming Interface (0) | 2014.05.09 |
java <-> c 상호호출 (0) | 2014.03.25 |
java TCP/UCP socket (0) | 2014.03.25 |
java object serializable / ObjectInputStream + ObjectOutputStream (0) | 2014.03.24 |