This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

serialization in java

 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 241
  • 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
 
Campbell Ritchie
Sheriff
Posts: 48402
56
  • 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
 
Muhammad Khojaye
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.

 
Raj chiru
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