Quiz: More Method Descriptions
Consider the following method of the String class:
String replace(String target, String replacement);
| How many parameters? | 2 | The parameters are target and replacement. |
| What is the type of the parameters | String |
Both parameters are declared as String. |
| What is the type of the return value? | String |
It says so before the name of the method. |