Hi all,
We are using import command as
import java.io.*, import java.util.* etc in the program.
Consider i am having a class A.
Is there any difference related to Memory consumptions for class A while writing import command as
import java.util.HashM ap ; rather than
import java.util.*;
in the case import java.util.HashM ap i am importing only the class HashMap where as in the case import java.util.* , i am importing all the classes present in util package.
We are using import command as
import java.io.*, import java.util.* etc in the program.
Consider i am having a class A.
Is there any difference related to Memory consumptions for class A while writing import command as
import java.util.HashM ap ; rather than
import java.util.*;
in the case import java.util.HashM ap i am importing only the class HashMap where as in the case import java.util.* , i am importing all the classes present in util package.
Comment