|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.lang.NullPointerException
public class NullPointerException
객체가 필요한 경우에, 어플리케이션이 null
를 사용하려고 하면(자) throw 됩니다. 예를 들어, 이하와 같은 경우가 있습니다.
null
객체의 인스턴스 메소드의 호출
null
객체의 필드에 대한 액세스 또는 변경
null
의 길이를 배열인것 같이 취득
null
의 슬롯을 배열인것 같이 액세스 또는 수정
null
를 Throwable
치인것 같이 throw
null
객체의 부정한 사용을 나타내는 경우는, 이 클래스의 인스턴스를 어플리케이션측에서 throw 하도록 해 주세요.
생성자 의 개요 | |
---|---|
NullPointerException ()
상세 메세지를 가지지 않는, NullPointerException 를 구축합니다. |
|
NullPointerException (String s)
지정한 상세 메세지를 가지는, NullPointerException 를 구축합니다. |
메소드의 개요 |
---|
클래스 java.lang. Throwable 로부터 상속된 메소드 |
---|
fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
생성자 의 상세 |
---|
public NullPointerException()
NullPointerException
를 구축합니다.
public NullPointerException(String s)
NullPointerException
를 구축합니다.
s
- 상세 메세지
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.