Consider the following method:
public static int powerOfTwo(int n) {
if (n == 0) {
return 1;
} else {
return 2 * powerOfTwo(n - 1);
}
}
Assume that the following code segment appears in a class:
int result = powerOfTwo(3);
System.out.println("2 raised to the power of 3: " + result);
What is printed as a result of executing the code segment?