+ 1

What is defination of import keyword and how could we explain import java.util.*;

17th Jan 2021, 8:14 AM
Ishan#
Ishan# - avatar
2 Respostas
+ 5
import - is a Java keyword. It declares a Java class to use in the code below the import statement. Once a Java class is declared, then the class name can be used in the code without specifying the package the class belongs to. Use the '*' character to declare all the classes belonging to the package.
17th Jan 2021, 8:50 AM
Radha🌹
Radha🌹 - avatar
+ 2
The keyword "import" is used to call a package from java library. import- This keyword is used to call a package from java library. java.util- It is the name of the package associated with the utility functions. *- This symbol is used to call all the classes of that particular package
17th Jan 2021, 8:20 AM
Hemant Prakash
Hemant Prakash - avatar