When I declare an instance variable, such as:
BSTNode node;
I know that node
is now null, since the instance variable is not initialized. But is some memory allocated to store the value of null
, and is node
now a reference to that location?
I tried using
System.out.println(node);
Hoping that I would see the address of the reference, but just saw "null"
printed out. Why do I not see an address?