Objects and references

Object: currently using the new operator to open up in the heap memory space called objects.

Quote: is a variable, not necessarily a local variable, may also be a member variable. Save referenced memory address, pointing to the object heap memory.

All instances related to access data goes through the "Reference." Accessible manner, because only by reference to find the object.

Only an empty reference to an instance related to data access object appears null pointer exception.

Guess you like

Origin www.cnblogs.com/xing-29391/p/12147910.html