Is it possible to use this in static blocks?

Total Post:83

Points:415
C#  Java 
C#
 683  View(s)
Ratings:
Rate this:
  1. Post:83

    Points:415
    Is it possible to use this in static blocks?

    No, it's not possible to use this keyword in the static block, because there is no object instance in a call of a static method and also 'this' refers to the object instance.

Answer