Java   View all facts   Glossary   Help
syntactic unit > expression
Next syntactic unitkeyword    Upsyntactic unit    Previous syntactic unitdefinition   

expression
subjectfact 
expressioncan be part of an expressionadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:36:41.0
has definition A series of variables, operators and method calls (constructed according to the syntax of the language) that evaluates to a single valueadded by: DS, source: Sun Java Tutorial, reference: Tutorial, 2001-10-19 11:36:42.0
has type that is the type of its resultadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:36:42.0
has value called its result, or its return valueadded by: DS, modified by: JK, source: Teach Yourself Java 2 in 21 Days, 2001-10-19 11:36:42.0
has purpose
  • to compute values
  • or to assign to a variable
  • or to control the flow of execution
added by: DS, source: Sun Java Tutorial, 2001-10-19 11:36:42.0
is a subtopic of Statements and Expressions2001-10-19 11:36:42.0
is a kind of syntactic unitadded by: DS, 2001-10-19 11:36:42.0
occurs in a context where a value is requiredadded by: DS, 2001-10-19 11:36:42.0
performs a computation specified by 0 or more operatorsadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:36:42.0
returns a value from its computationadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:36:42.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0

Kinds of expression :