Why must I use the “this” keyword for forward references?
When I use the this
keyword for accessing a non-static variable in a class, Java doesn’t give any error. But when I don’t use it, Java gives an error. Why must I use this
?
When I use the this
keyword for accessing a non-static variable in a class, Java doesn’t give any error. But when I don’t use it, Java gives an error. Why must I use this
?