Thursday, 12 February 2015

static Block


public class B {
    static
    {
        System.out.println("static block");
    }
    public static void main(String[] args) {
        System.out.println("main");
    }

}

No comments:

Post a Comment