그냥 클래스변수쓰면서 선언과 초기화해서 쓰면되는거아님?


class InitBlock {

    static int classVar;

    int instanceVar;

 

    static {

        classVar = 10;

    }