I have a question on serialization. If my class has private variables and there are no getters and setters, then how will the value of these variables be read by the Serializat
Don't wory, by using the reflection anyone can access your's private fields.
Here is an example how to do this.