Java   View all facts   Glossary   Help
synonym > package statement
Next declarationparameter declaration    Updeclaration, statement, synonym    Previous declarationobject declaration   

package statement
(package declaration, package declaration)
subjectfact 
package statementis a synonym of package declaration2001-10-19 11:37:38.0
contains package information about the class in the source fileadded by: Marvin, 2001-10-19 11:37:38.0
has definition A statement that declares the name of the package the file definesadded by: DS, source: Sun Java Tutorial, reference: Source 2, 2001-10-19 11:37:38.0
has example
package com.naviseek.canasta
added by: JK, source: Teach Yourself Java 2 in 21 Days, 2001-10-19 11:37:38.0
has purpose to specify that all classes and interfaces in its file belong to a packagesource: Sun Java Tutorial, 2001-10-19 11:37:39.0
has purpose to specify the name of the package to which the compilation unit in which the package declaration is put belongsadded by: JK, 2001-10-19 11:37:39.0
has syntax
package packageName
2001-10-19 11:37:39.0
is a subtopic of Packages2001-10-19 11:37:39.0
is a synonym of package declarationadded by: JK, 2001-10-19 11:37:39.0
is a kind of declarationadded by: DS, 2001-10-19 11:37:39.0
is a kind of statementadded by: JK, 2001-10-19 11:37:39.0
must be the first statement in the source file except for commentsadded by: Marvin, 2001-10-19 11:37:39.0
must occur at the beginning of a filesource: Sun Java Tutorial, 2001-10-19 11:37:39.0
declarationis part of definition2001-10-19 11:36:35.0
statementis terminated by a semicolon    2001-10-19 11:37:57.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0

Next declarationparameter declaration    Updeclaration, statement, synonym    Previous declarationobject declaration