File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Can you serialize abstract class? 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 » Java in General
Bookmark "Can you serialize abstract class?" Watch "Can you serialize abstract class?" New topic

Can you serialize abstract class?

Richard Teston
Ranch Hand

Joined: Feb 12, 2002
Posts: 89

The Code is the Programmer
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24195

Well, no, because you can only serialize objects, and you can't create an instance of an abstract class.
Can you explain why this comes up?

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Can you serialize abstract class?
It's not a secret anymore!