Pages

Sunday 20 November 2016

Problem 34 - Static Block

class StaticBlock {
  public static void main(String[] args) {
    System.out.println("Main method is executed.");
  }
 
  static {
    System.out.println("Static block is executed before main method.");
  }
}


0 comments:

Post a Comment