新聞中心
InstantiationException

白城網(wǎng)站制作公司哪家好,找成都創(chuàng)新互聯(lián)!從網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、APP開發(fā)、成都響應(yīng)式網(wǎng)站建設(shè)公司等網(wǎng)站項目制作,到程序開發(fā),運營維護。成都創(chuàng)新互聯(lián)于2013年開始到現(xiàn)在10年的時間,我們擁有了豐富的建站經(jīng)驗和運維經(jīng)驗,來保證我們的工作的順利進行。專注于網(wǎng)站建設(shè)就選成都創(chuàng)新互聯(lián)。
java.lang.Object
|---java.lang.Throwable
|---|---java.lang.Exception
|---|---|---java.lang.ReflectiveOperationException
|---|---|---|---java.lang.InstantiationException
public class InstantiationException
extends ReflectiveOperationException
當(dāng)應(yīng)用程序嘗試使用類 Class 中的 newInstance 方法創(chuàng)建類的實例,但無法實例化指定的類對象時拋出。 實例化可能由于多種原因而失敗,包括但不限于:
- 類對象表示抽象類、接口、數(shù)組類、原始類型或 void
- 該類沒有空構(gòu)造函數(shù)
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| InstantiationException() | 構(gòu)造一個沒有詳細消息的 InstantiationException。 |
| InstantiationException(String s) | 使用指定的詳細消息構(gòu)造一個 InstantiationException。 |
方法總結(jié)
| 從類 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 |
構(gòu)造函數(shù)詳細信息
InstantiationException
public InstantiationException()
構(gòu)造一個沒有詳細消息的 InstantiationException。
InstantiationException
public InstantiationException(String s)
使用指定的詳細消息構(gòu)造一個 InstantiationException。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| s | 詳細信息。 |
網(wǎng)站欄目:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSInstantiationException
文章起源:http://www.5511xx.com/article/cogishi.html


咨詢
建站咨詢
