0

What is the meaning of import java.util.System.*;

System is a class , So what denotes .* over there?

31st Jul 2016, 7:13 PM
sud
sud - avatar
6 Réponses
+ 3
java.util.system.* is used to import all the java language utilites to use it in a program.without that import all the variables wont work in the program
2nd Aug 2016, 8:50 AM
Kalyan Surapaneni
Kalyan Surapaneni - avatar
+ 2
I think what you mean is static import. E.g. import static java.lang.System.err; import static java.lang.System.out; So we use * to import all static fields import static java.lang.System.*; Then we can call println without System. E.g. out.println("Hello"); err.println("error");
31st Jul 2016, 8:25 PM
WPimpong
WPimpong - avatar
+ 1
import statement in a java is used in Java to import all the predefined classes defined in a package package is just like a directory in the file system and scanner is a java class that provides the ability to take input from the user and In Java ,classes are organised in a package to understand and visualise them as a directories
27th Oct 2018, 3:41 AM
Md dilshad alam
Md dilshad alam - avatar
0
in other words it is a header file used for importing predefined behaviours from jvm library
15th Aug 2016, 1:01 AM
Gowtham krvz kv
Gowtham krvz kv - avatar
- 1
java.util.System.*; this * means system class all members and members are included in your program
8th Aug 2016, 3:48 PM
srilekha
- 1
not util lang package is system class
8th Aug 2016, 3:50 PM
srilekha