This is the code :
public class Triangle { private String color; private int height; public Triangle(String color,int height){ this.color = color;
Based on tests for Spring 3.1.0, the second constructor will be used. I don't know why, the documentation didn't give any definitive answer.
Bitbucket code To test, run Main class, it will output String FIRST or SECOND, depending which constructor will be used to create Triangle object.