ITI 1121 Lecture Notes - Lecture 1: Arity, Local Variable
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;