12. The java.lang Package
Contents:
The package java.lang contains classes and interfaces that are essential to the Java language. These include:
Because the classes in the java.lang package are so essential, the java.lang package is implicitly imported by every Java source file. In other words, you can refer to all of the classes and interfaces in java.lang using their simple names. Figure 12.1 shows the class hierarchy for the java.lang package. The possible exceptions in a Java program are organized in a hierarchy of exception classes. The Throwable class is at the root of the exception hierarchy. Throwable has two immediate subclasses: Exception and Error. Figure 12.2 shows the standard exception classes defined in the java.lang package, while Figure 12.3 shows the standard error classes defined in java.lang. AbstractMethodErrorNameAbstractMethodErrorSynopsis
DescriptionAn AbstractMethodError is thrown when there is an attempt to invoke an abstract method. Class Summary
public class java.lang.AbstractMethodError extends java.lang.IncompatibleClassChangeError { // Constructors public AbstractMethodError(); public AbstractMethodError(String s); } ConstructorsAbstractMethodErrorpublic AbstractMethodError()
public AbstractMethodError(String s)
Inherited Methods
See AlsoError, IncompatibleClassChangeError, Throwable |
|