// example of static init block to initialise // a static variable static final int limit; static { final String temp = System.getenv( "limit" ) ); if ( temp == null ) { limit = 0; } else { limit = Integer.parseInt( temp ); } }