How do I use optional parameters in Java? What specification supports optional parameters?
VarArgs and overloading have been mentioned. Another option is a Builder pattern, which would look something like this:
MyObject my = new MyObjectBuilder().setParam1(value)
.setParam3(otherValue)
.setParam6(thirdValue)
.build();
Although that pattern would be most appropriate for when you need optional parameters in a constructor.