Java-Lang Package

Lang Package

All classes from the java.lang package are automatically imported into every Java program. Following program used the System and String classes. Both of these classes belong to the java.lang package. As this package would be automatically imported, we did not import it ourselves in that program.



Program Source

public class Javaapp {
    public static void main(String[] args) {
        String str = "";

Leave a Comment