This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
System.out.println("Pré Construtor"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static{ | |
System.out.println("Bloco estático"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class test { | |
{ | |
System.out.println("one"); | |
} | |
static { | |
System.out.println("static one"); | |
} | |
public static void main(String[] args) { | |
new test().run(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class test { | |
{ System.out.println("one"); } | |
static { System.out.println("static one"); } | |
public static void main(String[] args) | |
{ new test().run(); new test().run(); } | |
private test(){ | |
{ System.out.println("two"); }} | |
NewerOlder