Consider the following method:
public void printFibonacci(int n) {
int a = 0;
int b = 1;
System.out.print(a + " " + b + " ");
for (int i = 2; i < n; i++) {
int sum = a + b;
System.out.print(sum + " ");
a = b;
b = sum;
}
}
Assume that the method printFibonacci(6) appears in a method in the same class. What is printed as a result of the method call?