Ciao gente ho questo esercizio:

codice:
public class TreB {
	protected int z = 7;

	public TreB(int z) {
		this.z = z--;
	}

	public TreB() {
		this.z++;
	}
}

public class Tre extends TreB {
	public Tre(int z) {
		this.z += z;
		System.out.println(this.z);
	}

	public static void main(String a[]) {
		new Tre(1);
	}

	public static void main(String a) {
		new Tre(2);
	}
}
L'output è 9!! Ma non capisco su quale base sceglie il primo main!! Uso Eclipse, non faccio partire il tutto da console!

Mi helpate?