?

Free Version

Upgrade subject to access all content

Moderate

Recursive Method With a String Parameter

APCSA-VXNPVF

Consider the following code segment.

public static void sleek(String str)
{
    if(str.length()>2)
    {
        sleek(str.substring(2));
        System.out.print(str);
    }
}

Including this first call of sleek, how many times is the method sleek called when the following statement is executed?

sleek("scare");
A

1

B

2

C

3

D

4

E

5