Does Java support default parameter values?

Java doesn't support a default parameter for the methods.

One common solution is the method overloading, e.g.:

String getValue(String firstParameter, String secondParameter) {
//...
}

String getValue(String firstParameter) {
    return getValue(firstParameter, "defaultParameter");
}

a less clean approach is to use null values, e.g.:

String getValue(String firstParameter, String secondParameter) {
    if (secondParameter == null) {
        secondParameter = "defaultParameter";
        }
//...
}