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)