Home  >  Article  >  Java  >  What are the knowledge points of Java exception system?

What are the knowledge points of Java exception system?

王林
王林forward
2023-04-28 16:22:141323browse

1. System classification

(1) uncheckedexception (non-checked exception)

is also called running Exceptions (RuntimeException), such as common NullPointerException, IndexOutOfBoundsException. For exceptions during operation, the Java compiler does not require exception catching or throwing statements, which is decided by the programmer.

(2) checked exception (checked exception, compilation exception)

is also called a non-running exception (exceptions other than running exceptions are non-running exceptions), java compiler Programmers must be forced to do capture processing. For example, the common IOException and SQLException. For non-running exceptions, if no capture or submission processing is performed, the compilation will not pass.

2. The relationship between Error and Exception

Under normal circumstances, Error will directly cause jvm errors, such as Java virtual machine running errors, etc. If the current thread occurs, then Unable to continue running.

Excpetion is an exception that the program itself can handle. It can run normally after it happens.

What are the commonly used java frameworks

1. SpringMVC, Spring Web MVC is a lightweight Web framework based on Java that implements the request-driven type of Web MVC design pattern.

2.Shiro, Apache Shiro is a security framework for Java.

3.Mybatis, MyBatis is an excellent persistence layer framework that supports ordinary SQL queries, stored procedures and advanced mapping.

4.Dubbo, Dubbo is a distributed service framework.

5.Maven, Maven is a project management and build automation tool.

6.RabbitMQ, RabbitMQ is a high-concurrency and high-reliability AMQP message queue server implemented in Erlang. 7.Ehcache, EhCache is a pure Java in-process caching framework.

The above is the detailed content of What are the knowledge points of Java exception system?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete