常见的异常

IllegalArgumentException非法参数
IllegalAccessException没有访问权限
IllegalArgumentException方法的参数错误
ArrayIndexOutOfBoundsException数组下标越界
ArithmeticExceptio数学运算异常
ClassNotFoundException指定的类不存在
NullPointerException空指针调用了未经初始化的对象或者是不存在的对象
IndexOutOfBoundsException索引出界 BufferOverflowException(缓冲区上溢异常), BufferUnderflowException(缓冲区下溢异常), IndexOutOfBoundsException(出界异常)EmptyStackException(空栈异常), IllegalArgumentException(不合法的参数异常

2021-721
Error: java: Compilation failed: internal java compiler error
pom中添加java1.8的编译插件

 	<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.6.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值