Core Java 1

Source: Internet
Author: User

p264~p267:

1. errors may occur in the program: User input error, device error, physical limit error, code error

2. If some operations are not completed due to an error, the program should : return a security state and be able to allow the user to execute some other commands;

or allow the user to save all operation results and terminate the program in a proper manner.

3. The task of exception handling : Transfer control from the place where the error occurred to the error handler that can handle the situation.

4. exception Object : Derived from an instance of the Throwable class.

5,Error class : Do not need to pay attention to

6,Exception class: which do not need to pay attention to RuntimeException class

7. Summary : What should I do when an application error occurs? What are the Java exception classes? What are some of the classes that need attention? (IOException)

Core Java 1

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.