I am beginner in JAVA and I am totally confused with the definition of this in Java. I have read that it refers to the current object concerned.
But what does that mean ? Who assigns the object to this ? And how would I know while writing my code what should be the value of this at the moment.
In nutshell, I am totally confused with this. Can anyone help me in getting rid of my confusion ? I know that this is very useful.
Follow these two links:-
http://javapapers.com/core-java/explain-the-java-this-keyword
http://docs.oracle.com/javase/tutorial/java/javaOO/thiskey.html