当前位置:网站首页>异常
异常
2022-06-28 09:21:00 【用户9857551】
异常
IDEA
javaJava.lang.Throwable类是Java语言中所有的错误或异常的超类。 Exception;编译期异常。 RuntimeException:运行期异常,Java程序运行过程中出现的问题。可以选择两种1.alt+enter(快捷键)加抛出异常。2.try、catch。 Error:错误 错误就是无法治愈的问题,必须是改源码才能继续执行。 错误示例:
int[1024*1024*1024]
//outOfMemoryError//
创建 的数组太大了,内存溢出,超出了给JVM分配的内存。
必须改代码!
改成long就可以了。边栏推荐
- SQL 優化經曆:從 30248秒到 0.001秒的經曆
- 理解IO模型
- JMeter -- interface test 1
- DEJA_ Vu3d - 052 of cesium feature set - Simulation of satellite orbit (high altitude) effect
- Installation of containerd1.5.5
- 华泰证券网上开户安全吗 办理流程是什么
- "Jianzhi offer" -- Interview Question 4: finding two-dimensional arrays
- Do static code blocks always execute first? The pattern is smaller!!!
- 1180: fractional line delimitation /p1068 [noip2009 popularization group] fractional line delimitation
- rman备份报ORA-19809 ORA-19804
猜你喜欢

基于宽表的数据建模

Matlab tips (20) matrix analysis -- principal component regression

Installation of containerd1.5.5

Full link service tracking implementation scheme

硬盘基本知识(磁头、磁道、扇区、柱面)

From knowledge to wisdom: how far will the knowledge map go?

new URL(“www.jjj.com“)

JVM系列(2)——垃圾回收

全链路业务追踪落地实践方案

APICloud携手三六零天御,助力企业守好App安全“第一关”
随机推荐
在本类私有属性直接使用?new()在使用!!!
Summary of PMP learning experience
1180:分数线划定/P1068 [NOIP2009 普及组] 分数线划定
虛擬機14安裝win7(圖教程)
Applet: traverse the value of an array in the list, which is equivalent to for= "list" list An item in comment
DEJA_ Vu3d - 051 of cesium function set - perfect realization of terrain excavation
Batch modify tables and sorting rules for fields in tables
PMP考试重点总结九——收尾
Edit the live broadcast source code with me. How to write the live broadcast app code
Campus honey decoration of APP course design (e-commerce platform)
[big case] Xuecheng online website
Ingersoll Rand panel maintenance IR Ingersoll Rand microcomputer controller maintenance xe-145m
HDI的盲孔设计,你注意到这个细节了吗?
Is it safe for CICC fortune to open an account? How much do you charge?
SQL injection file read / write
P2394 yyy loves Chemistry I
虚拟机14安装win7(图教程)
1181: integer parity sort
JVM系列(2)——垃圾回收
spark的资源调度和任务调度