Understanding the Java stack

前端 未结 7 1133
无人及你
无人及你 2020-12-24 06:44

There is this code:

public class Main {
    public static void main(final String[] args) throws Exception {
        System.out.print(\"1\");
        doAnythi         


        
相关标签:
7条回答
  • 2020-12-24 07:30

    In addition, Objects of type Error are not Exceptions objects they represent exceptional conditions. Errors represent unusual situations that are not caused by program errors, usually does not normally happen during program execution, such as JVM running out of memory. Although they share a common superclass Throwable, meaning both can be thrown, it can be placed in a catch but generally not supposed to be caught, as they represent rare, difficult-to-handle exceptional conditions.

    0 讨论(0)
提交回复
热议问题