Java Static Initializer Block

  • + 0 comments

    we are declaring flag as static boolean flag=true. As it is static so it shouldn't make changes but when inside the static block we give flag=false,the flag becomes false.Why?