Professional Documents
Culture Documents
private ThreadSafeSingleton(){}
2.Serialization:
// Serialize the object to file
ObjectOutput objectOutput = new ObjectOutputStream(new
FileOutputStream("file.txt"));
objectOutput.writeObject(obj);
objectOutput.close();
Design pattern: Design pattern are used to reduce the application memory and
execution time, so that performance of application will be improved.