Summary

For variables to be used in programming, they must first be declared and initialized. Variable declaration consists of two parts: a data type and an identifier. Variable types are either primitives or references to objects. After it has been declared, a value is introduced to a scope, which may then be stored in a variable, provided it is within the limits of the variable’s type. Furthermore, expressions can be utilized to perform calculations and may also be used to store values.

Expressions make use of operators, which are the symbols (or group of symbols) a program uses to indicate a specific operation to perform (such as addition, multiplication, or division). Operators are evaluated in order of precedence, and from either left to ...

Get Special Edition Using® Microsoft® ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.