Inside your function, there is no way to know that arg1 is receiving the value from a variable called ‘myName’.
Outside your function, you could probably use the reflection api if we were talking about class fields.
As for variable names, depending on how you compile your program, some debug information (including local variable names) could be stored in the .class file, but I don’t think it is going to be easy to read it from there.
Why do you need to do that ?
Discuss This Question: 1  Reply