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


coskun olcucu
coskun olcucu
5,340 Points

How to get serial number on Eclipse for Java Serialization?

Hi all, I watched the course about Serialiazition on Java Data Structures course.I can't serial number like he did on the video.My question is how to get the serial number on Eclipse or other IDE like JGrasp. thank you for your help,

1 Answer

Tony Gemenie
Tony Gemenie
3,781 Points

Hey coskun

I'm sure you know it's included with your jdk under java.io.Serializable. Some stuff from the docs that might help.

The subtype may assume this responsibility only if the class it extends has an accessible no-arg constructor to initialize the class's state. strongly advised that explicit serialVersionUID declarations use the private modifier where possible,