> Java has the same types of method arguments.
no it hasn't. You can't do
public method(String name = "test") {...}
in Javano it hasn't. You can't do
public method(String name = "test") {...}
in Java