A)
import static java.lang.Integer.*;
import static java.lang.System.*;
class staticimporttest {
public static void main(String[] args) {
int a = parseInt(args[0]);
out.print(a);
}
}
Note:
in the above example all the static members of Integer class and System class are imported. So, that without using the class name those members can be referred in the program.
in the above example all the static members of Integer class and System class are imported. So, that without using the class name those members can be referred in the program.
Comments
Post a Comment