Java - Static Keyword
Consider this code:
What is the purpose of the static block here?
class Config {
static String env;
static {
env = System.getenv("APP_ENV");
if (env == null) env = "dev";
}
}What is the purpose of the static block here?
