About 2,240,000 results
Open links in new tab
  1. What is the purpose of Serialization in Java? - Stack Overflow

    Serialization is like taking a photo of your favorite moments because the moments don't last sadly ;) – a sunset, a delicious meal, or a gathering with friends. Just like a photo captures the exact state of a transient scene at a particular moment, serialization captures the state of an object ( that is transient by nature considering RAM is ...

  2. java - What is object serialization? - Stack Overflow

    Jan 15, 2009 · Here Java Virtual Machine (JVM) is responsible for its automatic serialization. transient Keyword: java.io.Serializable interface. While serializing an object, if we don't want certain data members of the object to be serialized we can use the transient modifier. The transient keyword will prevent that data member from being serialized.

  3. What is serialization in Java? - Stack Overflow

    Mar 5, 2014 · What is Java Serialization? Primary purpose of java serialization is to write an object into a stream, so that it can be transported through a network and that object can be rebuilt again. When there are two different parties involved, you need a protocol to rebuild the exact same object again. Java serialization API just provides you that.

  4. java - What is a serialVersionUID and why should I use it ... - Stack ...

    Nov 13, 2008 · The docs for java.io.Serializable are probably about as good an explanation as you'll get:. The serialization runtime associates with each serializable class a version number, called a serialVersionUID, which is used during deserialization to verify that the sender and receiver of a serialized object have loaded classes for …

  5. java - How to exclude field from class serialization in runtime ...

    Jan 29, 2013 · The default serialization mechanism for an object writes the class of the object, the class signature, and the values of all non-transient and non-static fields. References to other objects (except in transient or static fields) cause those objects to be written also.

  6. java - Jackson serialization: ignore empty values (or null) - Stack ...

    I'm currently using jackson 2.1.4 and I'm having some trouble ignoring fields when I'm converting an object to a JSON string. Here's my class which acts as the object to be converted: public class

  7. java - How to serialize Object to JSON? - Stack Overflow

    May 17, 2013 · The "reference" Java implementation by Sean Leary is here on github. Make sure to have the latest version - different libraries pull in versions buggy old versions from 2009. Java EE 7 has a JSON API in javax.json, see the Javadoc.

  8. java - What does Serializable mean? - Stack Overflow

    Aug 7, 2010 · A Java object is serializable if its class or any of its superclasses implements either the java.io.Serializable interface or its subinterface, java.io.Externalizable. Deserialization is the process of converting the serialized form of an object back into a copy of the object

  9. Java JSON serialization - best practice - Stack Overflow

    Apr 20, 2016 · I need to implement JSON serialization for some objects, and I've encountered a problem when it came to integration with generic collections. All serializable classes implement this interface (JSONObject comes from this library):

  10. java - How to generate serial version UID in Intellij - Stack Overflow

    I think the plugin helps with generating values for subclasses where the parent class is also serializable and contains a serialVersionUID.

Refresh