1. Trang chủ
  2. » Mẫu Slide

05 exceptions 01 Slide Java

31 266 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Exceptions in Java
Trường học Savich University
Chuyên ngành Computer Science
Thể loại Lecture Note
Năm xuất bản 2024
Thành phố Unknown
Định dạng
Số trang 31
Dung lượng 183,5 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

SLIDE JAVA 05 LIDE JAVA 05 16/1Exceptions Exceptions Reading: Savitch, Chapter 816/2ObjectivesObjectivesTo learn what an exception is.To learn how to handle an exception.16/3What is an Exception?What is an Exception?An exception is an object that describes an unexpected situation.Definition: An exception is an event that occurs during the execution of a program that disrupts the normal flow of instructions. 16/4Exampleint a = 4, b = 4;int [ ] intAy = new int[4];intAy[0] = a/(a - b); //this will generate and throw an ArithmeticException //objectfor(int k = 1; k

Ngày đăng: 22/02/2014, 22:15

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN