Is it possible to use this in static blocks?

Total Post:83

Points:415

C#  Java 
C#
 713  View(s)
Ratings:
Rate this:
  1. 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