Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Matthew Francis
6,967 PointsNewbie - Explanation on Serialization
From what I've gathered, it's the act of storing,cloning,transmitting an object into a database and file. Correct? if so, how do these apply in real life? I can't seem to think of any situation where I'll do these, maye because I have limited knowledge on Java. And in what situation do ou want to deserelize?
markmneimneh
14,133 Pointsmarkmneimneh
14,133 PointsHi
Let assume that you program is collecting the Dept sales info for the month, and does elaborate calculations to prepare a report for the boss
Some one else has to prepare the fancy report for the boss. This Someone else is and admin who is expert in fancy PowerPoint presentations.
But this admin is not a programmer and can't run programs. All this admin cares about is an excel file that can be used to make fancy charts.
So .. you run the program ... you serialize the data to an XLS file ... the admin picks up the XLS file and does the fancy charts for the boss.
This is an over simplification, but it is an example. Normally, I would write have the program write the sales data calculations to a Database so it get stored months to month.
Hope this helps.