PACKAGES
A Strange Example
7.5.4
The full specification of
java.lang
 is given in Chapter 20. The following
public
 types are defined in
java.lang
:
AbstractMethodError
LinkageError
ArithmeticException
Long
ArrayStoreException
Math
Boolean
NegativeArraySizeException
Character
NoClassDefFoundError
Class
NoSuchFieldError
ClassCastException
NoSuchMethodError
ClassCircularityError
NullPointerException
ClassFormatError
Number
ClassLoader
NumberFormatException
ClassNotFoundException
Object
CloneNotSupportedException
OutOfMemoryError
Cloneable
Process
Compiler
Runnable
Double
Runtime
Error
RuntimeException
Exception
SecurityException
ExceptionInInitializerError
SecurityManager
Float
StackOverflowError
IllegalAccessError
String
IllegalAccessException
StringBuffer
IllegalArgumentException
System
IllegalMonitorStateException
Thread
IllegalThreadStateException
ThreadDeath
IncompatibleClassChangeError
ThreadGroup
IndexOutOfBoundsException
Throwable
InstantiationError
UnknownError
InstantiationException
UnsatisfiedLinkError
Integer
VerifyError
InternalError
VirtualMachineError
InterruptedException
7.5.4   A Strange Example
Package names and type names are usually different under the naming conven 
tions described in  6.8. Nevertheless, in a contrived example where there is an
unconventionally named package
Vector
, which declares a
public
 class named
Mosquito
:
package Vector;
public class Mosquito { int capacity; }
and then the compilation unit:
package strange.example;
import java.util.Vector;
123






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved