Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class InitBlockTest {
- {
- // init block
- System.out.println( "in init" );
- }
- public InitBlockTest() {
- this( 0 );
- System.out.println( "InitBlockTest()" );
- }
- public InitBlockTest(final int n) {
- System.out.println( "InitBlockTest(n=" + n + ")" );
- }
- public static void main( final String[] args ) {
- new InitBlockTest();
- System.out.println("=== === ===");
- new InitBlockTest( 4 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement