Im working on a very simple project in java that utilizes the Swing component
and I have a class that when finished with all its statements, Eclipse underlines it with a yellow line and gives the warning “The serializable class HelloComponent does not declare a static final serialVersionUID of type long”
The program works fine but whenever i create any classes other than the main one, I get this warning… Should I worry about it for now? Im a beginner in java.
You can safely ignore it if you are not going to do any serialization. However depending on what your application does… other frameworks / libraries may require serialization to work probably. (Ie object saving, remote procedure calls, database interaction.)
When in doubt just have ecilpse auto create it.