nuovi test
This commit is contained in:
19
src/com/oracle/java8/associate/test/InitOrder.java
Normal file
19
src/com/oracle/java8/associate/test/InitOrder.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.oracle.java8.associate.test;
|
||||
|
||||
public class InitOrder {
|
||||
public String first = "instance";
|
||||
|
||||
public InitOrder() {
|
||||
first = "costructor";
|
||||
}
|
||||
|
||||
{first = "block";}
|
||||
|
||||
public void print() {
|
||||
System.out.println(first);
|
||||
}
|
||||
|
||||
public static void main(String... args) {
|
||||
new InitOrder().print();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user