Home > Java > javaTutorial > body text

What does api interface exception mean?

藏色散人
Release: 2020-09-18 09:13:44
Original
38621 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!