• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

marker interface

 
Saral Saxena
Ranch Hand
Posts: 203
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

While going through serialization ,I was reading that ..) How many methods Serializable has? If no method then what is the purpose of Serializable interface?..

What I think is that Serializable interface exists in java.io package and forms core of java serialization mechanism. It doesn't have any method and also called Marker Interface. When your class implements Serializable interface it becomes Serializable in Java and gives compiler an indication that use Java Serialization mechanism to serialize this object..! If there is any other reason than this then please advise me ..! and also please explain a little bit about marker interface,,,!

 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a few useful links in the "Threads other viewed" towards the end of the page.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic