Home » Archives for Naresh Joshi

Author Archives: Naresh Joshi

Naresh is a senior software engineer working in banking domain while having experience in health and insurance as well. He writes is programming blog ProgrammingMitra to share his knowledge with others

Java Serialization Magic Methods And Their Uses With Example

In a previous article Everything You Need to Know About Java Serialization, we discussed how serializability of a class is enabled by implementing theSerializable interface. If our class does not implement Serializable interface or if it is having a reference to a non Serializable class then JVM will throw NotSerializableException. All subtypes of a serializable class are themselves serializable andExternalizable ...

Read More »

How To Deep Clone An Object Using Java In Memory Serialization

In my previous articles, I had explained the difference between deep and shallow cloning and how copy-constructors and defensive copy methods are better than default java cloning. Java object cloning using copy constructors and defensive copy methods certainly have some advantages but we have to explicitly write some code to achieve deep cloning in all these approaches. And still, there ...

Read More »

How to Customize Serialization In Java By Using Externalizable Interface

In a previous article Everything About Java Serialization Explained With Example, I explained how we can serialize/deserialize one object usingSerializable interface and also explain how we can customise the serialization process using writeObject and readObject methods. Disadvantages Of Java Serialization Process But these customizations are not sufficient because JVM has full control of the serialization process and those customization logics ...

Read More »

Useful Git Commands

Git is a most widely used and powerful version control system for tracking changes in computer files and coordinating work on those files among multiple people. It is primarily used for source code management in software development, but it can be used to keep track of changes in any set of files. Git was developed by Linus Torvalds in 2005 ...

Read More »