Bang hộiTiền mặt: 0 Xu Trò chơiHộp quà giáng sinhThứ Ba, 02:48:47 - 17/09/2024
Chia sẻ kiến thức ngôn ngữ lập trình C, C++, C#, Java, Python, PHP, JS, SQL ...

Các điều hành viên: Mod, SMod, Admin

[Java] Phân cấp ngoại lệ Java - Java Exceptions Hierarchy

[Java] Phân cấp ngoại lệ Java - Java Exceptions Hierarchy

#1 » Gửi bài gửi bởi SQLInjection » 01/09/2024 00:50 » @618500

- The class at the top of the exception class hierarchy is the Throwable class, which is a direct subclass of the Object class
- Throwable has two direct subclasses:
+ Exception
+ Error

- The Exception class is used for exception conditions that the application may need to handle. Examples of exceptions include IllegalArgumentException, ClassNotFoundException and NullPointerException.
- The Error class is used to indicate a more serious problem in the architecture and should not be handled in the application code. Examples of errors include InternalError, OutOfMemoryError and AssertionError.
- Exceptions are further subdivided into checked (compile-time) and unchecked (run-time) exceptions. All subclasses of RuntimeException are unchecked exceptions, whereas all subclasses of Exception besides RuntimeException are checked exceptions.


[Java] Phân cấp ngoại lệ Java - Java Exceptions Hierarchy
SQLInjection
Hình đại diện của thành viên
Rank: ☀️1/30☀️
Cấp độ:
Tu luyện:
Like:
Online:
Bang hội: Tiếu Ngạo
Xếp hạng Bang hội: ⚡5/43⚡
Level:
Chủ đề đã tạo: 🩸2/4142🩸
Tiền mặt:
Nhóm:
Danh hiệu: ?????
Giới tính:
Ngày tham gia:
(Google Chrome Browser)


Quay về C, C++, C#, Java, Python, PHP, JS, SQL ...

 


  • Chủ đề tương tự
    Trả lời
    Xem
    Bài viết mới nhất