Java   View all facts   Glossary   Help
syntactic unit > scoping unit
Next syntactic unitstatement    Upsyntactic unit    Previous syntactic unitmethod signature   

scoping unit comparison table
Subject create you define have be store as is a subtopic of have example group import by have purpose use as has definition import you is partitioned into specify by contain have layout example see also
block     Statements and Expressions
{
a =5;
b = computeSomething;
}
  to create a new scope and/or to create a compound statementthe body of classes, loops, conditional statements and for exception handlingA syntactic unit that groups statements or makes new declarations body, nested block several statements surrounded by bracesstyle preferred by the authors:
if(condition)
{
// statements
}
 
packageput a class in it or put an interface in it by putting a package statement at the top of the source file in which the class or interface is defineda name spacea nameimporteda set of class files in a directoryPackages classes or interfaces by functionusing the import statementto group together related classes into a subsystem A collection of related classes and interfaces that provides access protection and namespace managementuse the import statement with the asterisk wildcard character a file that begins with a package statement0 or more classes and 0 or more interfaces package name

Next syntactic unitstatement    Upsyntactic unit    Previous syntactic unitmethod signature