0

Is that static a method so we can call it directly ?

class stats1 {
    static { 
        System.out.println("Super static");
    }
}
Alexis C.
  • 91,686
  • 21
  • 171
  • 177

1 Answers1

1

It is a static block. You may not be able to call it specifically as it executes when the class is loaded.

For more details refer this - http://www.jusfortechies.com/java/core-java/static-blocks.php

Rishikesh Dhokare
  • 3,559
  • 23
  • 34