What are the base cases in the following recursive method?

```
public static void xMethod(int n) {
if (n > 0) {
System.out.print(n % 10);
xMethod(n / 10);
}
}
```
a. n > 0
b. n <= 0
c. no base cases
d. n < 0


b

Computer Science & Information Technology

You might also like to view...

A(n) ____________________ takes a digital signal and converts it into an analog signal.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Using the Windows 10 Groove Music app, you can record lectures, conversations, or any other sounds

Indicate whether the statement is true or false

Computer Science & Information Technology

UNIX is available on any Macintosh computer that runs MacOS X.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

When you add a new field to a form, two controls are usually created: a(n) caption and a text box. _________________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology