amitshekhariitbhu / android-interview-questions

Your Cheat Sheet For Android Interview - Android Interview Questions and Answers
https://outcomeschool.com
Apache License 2.0
11.48k stars 2.27k forks source link

Instantiation vs Initialization #77

Closed jmayalag closed 4 years ago

jmayalag commented 5 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