Chapter 3

5 Pages
Unlock Document

Ryerson University
Information Technology Management
ITM 200
Vikraman Baskaran

Chapter 3 Identifiers - are the names for the variables, classes,constants and methods They can be in any length Must start with a letter, _ , or a dollar sign Cannot be reserved words Variables hold information like 12, Hello, g, $#$$#&*FGYY Ex. Radius = 4, where radius is the variable Declaring variables When declaring a variable, you must have the data type and the variable Ex. int age; or double income;, char letter, String name; Where int, is a whole name like 56 Where double, is a number with decimals like 445.333333 Where char, is a letter like t or U Therefore a variable can be declared like: int radius = 1; or int radius; char letter = t; or char letter; radius = 1; letter = t; Constant is a variable that is final, which means that the value of the constant cannot be changed Ex. final int radius = 4;
More Less

Related notes for ITM 200

Log In


Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.