Closed jmayalag closed 4 years ago
The descriptions are inverted.
Instantiation is when you allocate memory in the heap (for objects) Initialization is when you assign a value to the object's fields.
https://docs.oracle.com/javase/tutorial/java/javaOO/objectcreation.html
The descriptions are inverted.
Instantiation is when you allocate memory in the heap (for objects) Initialization is when you assign a value to the object's fields.
https://docs.oracle.com/javase/tutorial/java/javaOO/objectcreation.html