Most visited

Recently visited

Added in API level 1

OutOfMemoryError

public class OutOfMemoryError
extends VirtualMachineError

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Error
       ↳ java.lang.VirtualMachineError
         ↳ java.lang.OutOfMemoryError


当Java虚拟机由于内存不足而无法分配对象时抛出,并且垃圾收集器无法提供更多内存。 OutOfMemoryError对象可能由虚拟机构造,就像suppression were disabled and/or the stack trace was not writable一样

Summary

Public constructors

OutOfMemoryError()

构造一个没有详细信息的 OutOfMemoryError

OutOfMemoryError(String s)

用指定的详细信息构造一个 OutOfMemoryError

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

OutOfMemoryError

Added in API level 1
OutOfMemoryError ()

构造一个没有详细信息的 OutOfMemoryError

OutOfMemoryError

Added in API level 1
OutOfMemoryError (String s)

用指定的详细信息构造一个 OutOfMemoryError

Parameters
s String: the detail message.

Hooray!