ITI 1121 Lecture Notes - Lecture 1: Arity, Local Variable

131 views3 pages

Document Summary

A variable is a place in memory that holds a value which we refer to with a label eg. int thisisaninteger = 42; char heresacharacter = "a"; Primitive data types numbers, characters (not strings), booleans the value is stored at the memory location designated by the label of the variable. Arrays and strings; user defined reference data types refer to an instance of a class the value of a reference variable is a memory location, which point/refers to the location of an object (a "pointer", "link", "reference") declaring a reference variable doesn"t create the object or allocate space for the object; it only allocates memory to store the object address https://javarevisited. blogspot. Topics page 1 this. value = value; public class mainprogram { public static void main (string[] args) { = a; c = 12 - a; object = new anobject(88); hi = hi;

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents