When I read about "In How many ways we can create an Object in java".
I found four way:
- Creation of Object using new Operator.
- Cloning
- Serialization
- Reflection.
With new and reflection, I am fine with these two methods.
My Question is:
Why do people consider cloning and serialization as different ways of creating an Object?