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?