CS 106A Chapter Notes - Chapter 7: Call Stack, Local Variable

37 views2 pages

Document Summary

Ch 7 memory: summary, bit a. i. a. ii. fundamental unit of memory represented by binary digits, organization b. i. b. ii. b. iii. Sequence of bytes in which byte is identified by index position (address) Of multibyte values is address of first byte it contains: memory needed for types c. i. c. ii. c. iii. Static data and program code d. ii. d. i. 1. d. i. 2. d. i. 3. More memory to hold actual data in object. When declare local variable of some object d. iv. 1. d. iv. 2. Assign it an initial value by calling its constructor. Memory both heap and stack: this e. i. e. ii, garbage. Stack frame for method call includes entry identified by this that identifies object to which method is applied. This = local variable referring to receiving object f. i. f. ii. Objects in heap that are used as temporary values no longer needed. Java system periodically undertakes garbage collection: passing objects g. i. Object is copied into stack frame of new method.

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