201671010146 2017-2 "The ninth Week Java learning sentiment"

Source: Internet
Author: User

this week learned about exceptions and assertions.

Exceptions are divided into internal (set) exceptions and create class exceptions (custom exceptions), while run-time exceptions (such as stack null) are unchecked exceptions, that is, non-checked exceptions, non-runtime exceptions are check exceptions, which are checked for exceptions.

All exceptions are inherited by Throwable and are broken down into error and exception.

When an exception is thrown, a method may throw multiple checked exception types (that is, a method must declare all exceptions), separated by ",".

In class before they have to see, so better understand, but write the program when some cards, but no previous several times so serious, there will be basic ideas, later study will try to find and solve the problem.

PS: Task Nine does not ...

201671010146 2017-2 "The ninth Week Java learning sentiment"

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.