← 返回首页
OutOfMemoryError (Java SE 26 & JDK 26)
JavaScript is disabled on your browser.
Contents  
  1. Description
  2. Constructor Summary
  3. Method Summary
  4. Constructor Details
    1. OutOfMemoryError()
    2. OutOfMemoryError(String)
Hide sidebar  Show sidebar

Class OutOfMemoryError

All Implemented Interfaces: Serializable
public class OutOfMemoryError extends VirtualMachineError
Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector. OutOfMemoryError objects may be constructed by the virtual machine as if suppression were disabled and/or the stack trace was not writable.
Since: 1.0 See Also:

Scripting on this page tracks web page traffic, but does not change the content in any way.