创新互联鸿蒙OS教程:鸿蒙OSOutOfMemoryError

OutOfMemoryError

创新互联-专业网站定制、快速模板网站建设、高性价比淇县网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式淇县网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖淇县地区。费用合理售后完善,十多年实体公司更值得信赖。

java.lang.Object

|---java.lang.Throwable

|---|---java.lang.Error

|---|---|---java.lang.VirtualMachineError

|---|---|---|---java.lang.OutOfMemoryError

public class OutOfMemoryError
extends VirtualMachineError

当 Java 虚拟机因为内存不足而无法分配对象时抛出,并且垃圾收集器无法提供更多内存。 OutOfMemoryError 对象可以由虚拟机构造,就像 Throwable#Throwable(String, Throwable, boolean, boolean)。

构造函数摘要

构造函数 描述
OutOfMemoryError() 构造一个没有详细消息的 OutOfMemoryError。
OutOfMemoryError(String s) 构造带有指定详细消息的 OutOfMemoryError。

方法总结

从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从类 java.lang.Throwable 继承的方法
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

构造函数详细信息

OutOfMemoryError

public OutOfMemoryError()

构造一个没有详细消息的 OutOfMemoryError。

OutOfMemoryError

public OutOfMemoryError(String s)

构造带有指定详细消息的 OutOfMemoryError。

参数:

参数名称 参数描述
s 详细信息。

新闻名称:创新互联鸿蒙OS教程:鸿蒙OSOutOfMemoryError
网站网址:http://www.hantingmc.com/qtweb/news25/70725.html

网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联