Java exception Handling (1)

Source: Internet
Author: User
Concept

Today, I read the idea of Java programming, specially to do a small summary.

The benefit of the exception is to reduce the complexity of the error code, because the anomaly mechanism can catch the appropriate exception in the right place.

Basic exception

When an exception is thrown, an exception object is created on the heap using the new object. The exception handling mechanism will find a suitable entry point to proceed to execute the program below, either this way or the way it is allowed. O (╯-╰) O.

Because it is another place to take over the anomaly, oh no! my Chinese is taught by maths teacher ...

Exception parameters

There are many different constructors, which can be regarded as a different return processing mechanism. The keyword throw has different results in different situations.

No matter what it looks like, it's returned from the method.

Catching exceptions

is to use the Try...catch block, the exception of the capture, anyway, no words, language organization is not good ....

Exception handlers

Termination and Recovery

END .... It's over here today, it's too water-written.

Effective Java Reading notes

1. Overriding equals must follow a common convention.

Instances of class 1.1 are inherently unique

1.2 Does not care if the class provides equal functionality.

1.3 Private classes Its Equals method is not called.

Reflexivity, symmetry, consistency, transitivity. etc...

That's it for today's summary, 5555,886.

Brother Bird's Linux private cuisine

A few commands learned today, and what files Ah, user groups Ah, permissions Ah, such things, Ah, head big dead, Learning ls command, learned to use the man command ... Oh, no.

Java exception Handling (1)

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.