본문 바로가기
Java 배우기

Lesson: Exceptions

by 노화방지 Anti-aging Hairstyle 2016. 1. 29.
반응형

Lesson: Exceptions

자바 프로그래밍 언어는 오류 및 기타 특별한 이벤트를 처리하기 위하여 exceptions를 사용합니다. 

이 단원은 exceptions를 언제, 어떻게 사용하는지에 대해 설명합니다.

The Java programming language uses exceptions to handle errors and other exceptional events. This lesson describes when and how to use exceptions.

What Is an Exception?

exception은 지침의 정상적인 흐름을 방해하는, 프로그램 실행 중에 발생되는 이벤트 입니다 
An exception is an event that occurs during the execution of a program that disrupts the normal flow of instructions.

The Catch or Specify Requirement

이 섹션은 exceptions를 catch하고 handle하는 방법을 커버합니다.
이 논의에는 chained exceptions 및 logging는 물론 try, catch, finally 블록이 포함되어 있습니다.

This section covers how to catch and handle exceptions. The discussion includes the trycatch, and finally blocks, as well as chained exceptions and logging.

How to Throw Exceptions

이 섹션은 throw statement와 Throwable class 및 그 subclasses를 커버합니다.
This section covers the throw statement and the Throwable class and its subclasses.

The try-with-resources Statement

This section describes the try-with-resources statement, which is a try statement that declares one or more resources. A resource is as an object that must be closed after the program is finished with it. The try-with-resources statement ensures that each resource is closed at the end of the statement.

Unchecked Exceptions — The Controversy

This section explains the correct and incorrect use of the unchecked exceptions indicated by subclasses of RuntimeException.

Advantages of Exceptions

The use of exceptions to manage errors has some advantages over traditional error-management techniques. You'll learn more in this section.

Summary

Questions and Exercises


«    DopZaClub   »


반응형

댓글