I would like to serialize some objects in console application just before program terminates itself(without adding this code simply in the end of main method)?
Is that possible to solve out?
I would like to serialize some objects in console application just before program terminates itself(without adding this code simply in the end of main method)?
Is that possible to solve out?
Copyright © 2021 Jogjafile Inc.
You can register a shutDownHook as below: