• Post Reply Bookmark Topic Watch Topic
  • New Topic

serialization in java  RSS feed

 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys

i want to know what are the ways we can serialize a java object in java 1.5 and later

is their any to make an object serializable with out implementing serializable interface

thanks
amir
 
Marshal
Posts: 56909
174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question 1: What have you tried? Where have you looked? Start with Serializable. Java serialization.

Question 2: No
 
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Amirtharaj Chinnaraj wrote:
i want to know what are the ways we can serialize a java object in java 1.5 and later


see JDK 5.0 Serialization API


is their any to make an object serializable with out implementing serializable interface


see xstream.

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using Java Reflection, but what's the problem with implements serializable interface?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!