COP 3502 Lecture Notes - Lecture 2: Integer Literal, Camel Case, Semicolon
Document Summary
Variable : a memory location used to store data. Variable declarations include: data type, identifier, optional assignment operator ( = sign; value to the right is assigned to variable on left) and value, and ending semicolon, and can only include: letters, digits, underscores, and dollar signs. Can not be java reserved keyword, or true, false, or null. Address : where a variable"s memory location is. A largest value that an integer variable can hold is +2 billion, or -2 billion. Data type: a type of data that can be stored. What types of operations can be performed on data. Include the variable, along with an initialized value. this stores the right-side term"s value into the variable on the left. int is not included in these. Can be any number, variable, or simple calculations using standard math operations. Style used by companies, teams, or teachers to input identifiers. Meaningful names make programs easier to maintain.