For a JVM to be able to deserialize an object, it must be able to find the bytecode for the class. If the JVM can't find a class during the deserialization of an object, it throws a ClassNotFoundException.
Is that above statement is true ? if so, if i write the state of an object into a file then if i try to deserialize the same on some other system( ex: Home destktop to office Laptop) then what will happen ?
should i have the classfile of the object on remote system(here Office Laptop) which i am going to deserialize ? bit confusing