Java   View all facts   Glossary   Help
syntactic unit > declaration > import statement
Next declarationinterface declaration    Updeclaration, statement    Previous declarationclass declaration   

import statement comparison table
Subject terminate by have syntax have example be part of have purpose has definition be is a subtopic of is a synonym of is a kind of import locate
declaration   definition A statement that establishes an identifier and associates attributes with it, without necessarily reserving its storage (for data) or providing the implementation (for methods) Variables and Data Types syntactic unit  
statementa semicolon    A syntactic unit that defines a step in the execution of a programnot more than one line long if possibleStatements and Expressions syntactic unit  
import statementa semicolon
import packageName.*
OR
import packageName.className
//Import the Circle class from the graphics package
import graphics.Circle;

//Import the entire graphics package
import graphics.*;
definitionto allow a class to use the facilities of another packageA statement that permits using references to other packages without prefixesnot more than one line long if possiblePackagesimport declarationstatement1 member class of a package or imports on demand 0 or more member classes from a package

Next declarationinterface declaration    Updeclaration, statement    Previous declarationclass declaration