To initialize a class member variable, put the initialization code in a static initialization block , as the following section shows. To initialize an instance member variable, put the initialization code in a constructor.
To initialize a class member variable, put the initialization code in a static initialization block , as the following section shows. To initialize an instance member variable, put the initialization code in a constructor.