Can you please help me with below code. The error is: \"Cannot use This in a static context\"
public class Sample2 { /** * @param a
In java you can not use this in static methods (static context).
Static methods do not point to any instance of the enclosing class.
Static
A static method cannot refer to “this” or “super” keywords in anyway
Refer official docs on this keyword