Java   View all facts   Glossary   Help
syntactic unit
Next kbTopterminal input and output    UpkbTop    Previous kbTopsynonym   

syntactic unit comparison table
Subject have part have syntax terminate by be be about cause write at is a synonym of is a subtopic of have example occur describe have purpose perform have type precede have access modifier be part of have access mode has definition return write write before have value
access unit        Access Control          A syntactic unit to which access can be controlled with an access modifier    
clause                        
comment 
/** commentText */
OR
/* commentText */
OR
// commentText
Note: '//' ignores everything to end of line
 between about 20% and 35% of the total length of the codeobvious things since they add clutter the top of each class Java Basics
executeMeToo(); /* This is to be ignored
and this too */
 the purpose of the class, how it should be used, its authors and its history of modificationto describe the purpose of each class, method and variable along with any difficult-to-understand statements inside methods, and to indicated any changes to the code  package statements     to describe loops and conditional statements inside complex algorithmswriting the code 
declaration        Variables and Data Types        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)    
definitiondeclaration    a compiler to set aside memory at compile time  Variables and Data Types          A statement that reserves storage (for data) or provides implementation (for methods).    
expression        Statements and Expressions in a context where a value is required 
  • to compute values
  • or to assign to a variable
  • or to control the flow of execution
a computation specified by 0 or more operatorsthat is the type of its result  an expression A series of variables, operators and method calls (constructed according to the syntax of the language) that evaluates to a single valuea value from its computation  called its result, or its return value
keyword                   A word that has special meaning in Java    
method signature 
methodName (parameter1Type parameter1 ...)
     headerMethods   to indicate the method's name and the number of its parameters and the types of its parameters      The method's name and the number of its parameters and the types of its parameters    
scoping unit        Scope          A syntactic unit that defines a scope (the region of a source text over which a declaration holds)    
statement  a semicolonnot more than one line long if possible    Statements and Expressions          A syntactic unit that defines a step in the execution of a program    
symbol                   A character or string of characters that represents or stands for something else    

Next kbTopterminal input and output    UpkbTop    Previous kbTopsynonym