public class TestConstructorOverload { TestConstructorOverload() { } TestConstructorOverload(int a) { } public void test() { int a = 3; TestConstructorOverload test = new TestConstructorOverload(a); } }