Lecture 24
2
Persistence
•Bank and Juno should remember state between invocations
– read state from a file at startup
– write state back to file at exit
•Can imagine a text representation of the state
•Better: Java knows how to save whole Objects