How can you make a object access the variables in a method without using .this? : <p>By making the object in main function and calling its method and updating the variables from class.
example:</p>

<pre><code>public class Test{
int a;
void testMethod(){
//how to access the variable here?
}
public static void main(String[] args){
Test Obj = new Test();
obj.testMethod();
}
</code></pre>

<p>How to access the variable 'a' inside the method testMethod without using .this ?</p>
