we say that java.lang is the default package.can anybody explain me how it will be added to the classpath by automatically and how does it is available to all programs by default.
The Java runtime environment has several jars with standard, "bootstrap" classes. When a ClassLoader tries to load a class, it will first look in those bootstrap jars.
For more information, read
this technote from Sun.
[ December 31, 2006: Message edited by: Scott Johnson ]