Is there any provision in java to find the address of a particular memory location?(like & in 'C' language)

Showing Answers 1 - 3 of 3 Answers

Harish Chauhan

  • Apr 17th, 2006
 

yes, you can get the address from the hasCode of the Object class.

  Was this answer useful?  Yes

Paul

  • May 20th, 2006
 

I don't know whether you can get the address of the object or not.. but ...hashCode will not give you the address.

  Was this answer useful?  Yes

soumya

  • Jul 19th, 2006
 

i dont think there is provision for finding address space but yes you can find the total memery and free memory by usiing commands freeMemeory() and totalMemory

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.