Computer Science, asked by sagarbarnwal721, 8 months ago

what is the function of "Import "command in java​

Answers

Answered by heeraskaushik
1

Explanation:

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.

import keyword is used to import built-in and user-defined packages into your java source file so that your class can refer to a class that is in another package by directly using its name. Use the '*' character to declare all the classes belonging to the package

Similar questions