1. using new operator 2. First get class reference either using Class.forname or class loader. On this class, create object using 'newInstance' method. 3. Clone 4. Deserialization
1. using new operator 2. First get class reference either using Class.forname or class loader. On this class create object using 'newInstance' method. 3. Clone 4. Deserialization
I agree with the answer given by vishrutha with few modifications.
Part 2 and the last is very similar to each other.
Deserialization can not be called as way of object creation.
Clone is useful for normal objects but not for composite objects.
From the perspective of design patterns we have six ways of object creation by GoF. But that is all about design patterns. If you ever heard about singleton objects (one of the six) you should read GoF creational patterns.