I'm newbie in programming so please bear with me. I would like to know what does set null do? At the 3rd line a and b are pointing to the same memory location after setting one of them to null the other one is still pointing to the old location.
Object a,b;
a = new Object();
b = a;
print(a == b); // true
a = null;
print(a == b); //false
Can someone explain me What does exactly set to null do? Is null another location in memory?