I have came across how different ways how people access instance variables in the class. For example:
public int getValue() {return value;}
public int getValue() {return this.value;}
Is there any performance benefit of using this.value
instead of just value
. I understand that using this.
ensures that there are no namespace conflicts but is there any other added benefit?