I&C SCI 32 Lecture 6: 6.2 Notes

55 views1 pages
- X is not really a variable that stores an integer
oX is the ā€œReferenceā€
oLocation in memory of where the object is
- What happens if x+=1
oWill the original integer stay or another object be created (did the ID change?) (YES)
- Integers are immutable
- Lists are mutable
- Memory is reused
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows half of the first page of the document.
Unlock all 1 pages and 3 million more documents.

Already have an account? Log in

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

Related Questions