Two illustrations read Java exceptions and assertions, and two java assertions

Source: Internet
Author: User

Two illustrations read Java exceptions and assertions, and two java assertions

Two illustrations: Read Java exceptions and assertions

-- Reprinted with the source: coder-pig




This section introduces:

The "Seven images parsing Java multithreading" released the day before yesterday has a good response. Well, let's have two more images today,

Java exceptions and assertions involve:

① What are exceptions, why are exceptions, exception handling mechanism models, Summary of common exception information, test exceptions and non-test exceptions;

Exception Capture: try-catch Block, finally block, multiple catch blocks, and nesting of try-catch blocks;

Exception statement: throws avoids exceptions;

Throw: throw explicitly throws an exception and a custom exception.

② What are assertion, introduce the advantages of assertion, use methods of assertion, enable and disable assertion, and use simple assertion examples

The content is quite rich. The two graphs contain all the above content ~



Body of this section:


Java exceptions and assertions ①:






Java exceptions and assertions ②:








The last two sentences are as follows:

Well, Java exceptions and assertions are so simple. We recommend you print them out ~

In addition, if you think the figure is not very clear, you can go to processon to find the picture I drew:

Https://www.processon.com/ I /53689bdb0cf21db1c3ea337e

You can find it on the home page. Of course, processon is a good tool. You can use it if you are interested!

In the end, if you have any missing or wrong information, or if you have any suggestions, thank you very much ~ In addition, you think

If it is good, I will like it for s so that more friends can see it?





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.