0

public class ABC {

{
    count = 1;
}

int count =3;

}//end of class

  • Does https://stackoverflow.com/questions/2420389/static-initialization-blocks help? Also, Java is not an acronym, so it should not be written in all caps. – Karl Knechtel Jul 31 '21 at 04:18
  • 1
    Found another answer here: https://stackoverflow.com/questions/48215842/why-can-my-instance-initializer-block-reference-a-field-before-it-is-declared – MicroDeepArea Jul 31 '21 at 05:13

0 Answers0