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

sdsd

Program Source

public class Javaapp {
    
    public static void main(String[] args) {
        
        String str = "hajsoftutorial.com";
        System.out.println(str);
    }
}

Leave a Comment