HOW TO GET THE ADDRESS OF COLLECTION OBJECT?
EXAMPLE :
i wrote like this...
Set set = new HasSet();
now i want to get the address of "set"
So, Can any one help me out !
There are no such things as 'addresses' in Java; note though that your 'set'
variable is a reference variable in the 'Java way' which actually is a pointer to
the 'real thing' which is a HashSet. You can't obtain the address of a reference
variable itself. Java is not C nor C++.
kind regards,
Jos