Description: Naresh Joshi's blog for Java Language, Spring, Hibernate, Struts, Web Services, Micro Services, Design Patterns, Multithreading, Collection XML, SQL.
A friend to Java Programming Language and its related Frameworks
public class SerializationMethodsExample { public static void main(String[] args) throws IOException, ClassNotFoundException { Employee emp = new Employee("Naresh Joshi", 25); System.out.println("Object before serialization: " + emp.toString()); // Serialization serialize(emp); // Deserialization Employee deserialisedEmp = deserialize(); System.out.println("Object after deserialization: " + deserialisedEmp.toString()); System.out.println(); // This will print false because both object are separate System.ou
Copyright Programming Mitra | Designed by VeeThemes.com . Proudly present by Blogger.