When we are declaring a variable of string. Why we don`t need to import java.lang.* ? e.g String MyString; Since String is a method under java.lang ! but why we stilk don`t need to import the java.lang class ?
Since String is a method under java.lang ! but why we stilk don`t need to import the java.lang class ?
Since the classes in the java.lang package are used in virtually every java program, the Java language designers made the decision to make an exception from the import rule, -- the classes from the java.lang package are imported by default. Eugene.