Java object Serialization and inheritance

Serializable is just a “marker interface” for a given class. But that class must adhere to certain rules: http://docs.oracle.com/javase/1.5.0/docs/api/java/io/Serializable.html To allow subtypes of non-serializable classes to be serialized, the subtype may assume responsibility for saving and restoring the state of the supertype’s public, protected, and (if accessible) package fields. The subtype may assume this responsibility … Read more

What is the difference between pickle and shelve?

pickle is for serializing some object (or objects) as a single bytestream in a file. shelve builds on top of pickle and implements a serialization dictionary where objects are pickled, but associated with a key (some string), so you can load your shelved data file and access your pickled objects via keys. This could be … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)