How to identify variable names in an instruction?
<p>I am looking for a solution which will provide me the names of every variable through which the value of password variable passes away. That is, {pass, temp, temp1, var1}</p>

<pre><code>class Student{
    public static void main(String args[]){
        String password="GOPAL12345";
        Student student=new Student();
        String var1=student.passPassword(password);
        System.out.println("Password is--&gt; "+var1);
    }
    public String passPassword(String pass){
        String temp=pass;
        String temp1=temp;
        return temp1;
    }
}
</code></pre>

<p>I want this to be done at runtime.</p>
