It's not a secret anymore!
The moose likes Servlets and the fly likes Servlets and serialVersionUID Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets and serialVersionUID" Watch "Servlets and serialVersionUID" New topic

Servlets and serialVersionUID

Bug Menot

Joined: Oct 15, 2004
Posts: 26
since GenericServlet implements Serializable and most people agree that it is a good practice to declare serialVersionUID for classes that implements Serializable, would it also be a good practice to hardcode serialVersionUID in a servlet?
I agree. Here's the link:
subject: Servlets and serialVersionUID
It's not a secret anymore!