static or static blocks cannot use this keyword results compiletime error

class Blog

  {

       int m=20;

           public static void main(String args[])
                 {
                System.out.println(this.m);
                 }

   }
                               

Comments