深深的碼丨Java OOM 召喚

OOM 全稱 java.lang.OutOfMemoryError,指 JVM 內存不夠用了,而且垃圾收集器也沒法提供更多內存java 本例演示怎樣實現一行代碼召喚 OOM :web Run int data[] = new int[Integer.MAX_VALUE]; Console Exception in thread "main" java.lang.OutOfMemoryError:
相關文章
相關標籤/搜索