Home  >  Article  >  Java  >  What does api interface exception mean?

What does api interface exception mean?

藏色散人
藏色散人Original
2019-05-21 16:22:1238632browse

What does api interface exception mean?

API: Application Programming Interface, that is, the jdk documentation manual, which provides many commonly used functions in the form of classes.

Exception: Abnormal situations that occur during program development are exceptions. For example, the divisor is 0, the parameter is null, the member variable or method of the parameter is called, and the array subscript is out of bounds

Exceptions are divided into two types:

(1) ,Exception: What the programmer can solve: null pointer, divisor is 0, array subscript out of bounds

(2), Error: What the programmer cannot solve: such as memory overflow.

Throwable is the parent class of these two types.

Exception classification:

Classified according to whether the compiler checks:

  • Non-checked exception: also called runtime exception, that is , the compiler does not perform exception checking during syntax checking.

  • Checked exceptions: also called compile-time exceptions. At this time, the compiler will forcefully check the syntax for exceptions. If there are exceptions, exception handling needs to be done at compile time.

Related learning recommendations: java basic tutorial

The above is the detailed content of What does api interface exception mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn