Consider the following code:
When will method stringRecur terminate without error?
It never works. It calls itself for
any input and goes into an infinite loop.
- Only when the length of the input string is greater than or equal to 15.
- Only when an empty string is input.
- For all string inputs.
- Only when the length of the input string is less than 15.
Does triggering the "if" statement affect whether a
recursive call is made?