What is the output of the below given code?
public class A
Public static int x=10;
public static int M()
this.x = this.x + 1;
When the method M is called it will return 11.
None of the options are correct.
this keyword is not allowed in the static methods.
Back To Top