Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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");
- }
- }
- {
- System.out.println("three");
- }
- static {
- System.out.println("static two");
- }
- public void run() {
- System.out.println("hmm...");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement