Skip to content

오랜만에 java보까ㅎ? #3

Description

@Jiyeong-github

빨간줄 - 컴파일 에러
실행될 때 에러 - 런타임 에러

예외 처리 - try{
//예외가 발생할 가능성이 높은 소스를 위치
} catch(Exception e){//필수적
//ㅇㅖ외 발생
//조치
}finally{//옵션
//예외 터지등가 말등가
//실행
}

//JSTL = JSP 태그 라이브러리, Mybatis 프로그램이랑 비슷
//마치 if else문과 비슷
//try에서 잘 넘어가면 catch 실행 안 됨

try~catch문을 꼭 써야 하는 상황:
throws Exception(처리 안 한다는 거)

싱글톤이란 프로그램 안에서 객체 1개만 만들어지도록 유도
//2개 이상 만들 수 없도록 한다.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions