Which of the following statements does not contain an error?

1. string firstName= in.next();
2. string lastName= in.nextline();
3. system.out.print("\n");
a. 1 only
b. 2 only
c. 3 only
d. 1 and 3 only
e. 2 and 3 only

is the answer 1 and 3

Yes, the answer is d. 1 and 3 only.