Originally posted by Amit Daga:
If one cannot get the memory location of variables in Java then isn't the language lacking something very seriously fundamentally??
Thanks!!
If you think about it, the exact location in memory of a variable is not genuinely useful unless you're writing some sort of RAM dumper or analyzer. If you print it to the console, it means nothing. Pointers come from the days of assembler and it's big brother C -- when the contents of the stack really were your buisness.