Skip to main content

Posts

Showing posts from November, 2018

Java Object Serialization

Java has a way to covert its object to binary form which called java serialization, then write it to a file  under any extension you want  this means you can store your program data into a form no only you know about the actual structure,  One of the most major reason that makes it so handy it is JVM independent that means you don't need to have JVM or java virtual machine on. your laptop after you built your java program   Example :  If you want to make a program for saving passwords or any sensitive files that you are afraid of intruders  to hack your information you can buy an application from any company, this is the problem that comes in you don't know how they save your data how they encrypting it  so you can use Java  serialization for keeping your data safe. here is how you use it  you need a class for serializing an object  these two methods one which named  public static void serializeObject(Map&l