Java Classes Question:
This can be used inside any method to refer to the current object
A) True
B) False

Answer:
Answer is False and i got it wrong inspite of being correct!!
Explanation:
this cannot be used within a static method. It can be used only within non-static methods.So the question asks whether it can be used inside any method......
Explanation:
this cannot be used within a static method. It can be used only within non-static methods.So the question asks whether it can be used inside any method......