It's not really print() vs. println() that I"m getting at, but whether text where the last line ends with \n counts as one line longer than an otherwise identical text block that doesn't.
One more thing, and then I'll shut up, because I'm even starting to annoy myself at this point. I swear though, it's just because I don't want to miss a question on the exam by not counting lines the way the exam thinks they should be counted.
So, Java counts it as 3 lines, not 4 as the answer key states. It doesn't include an extra blank line into the stream after the final \n. However, the comment on the lines() method is ambiguous:
Returns a stream of lines extracted from this string, separated by line terminators.
Are they separators or terminators? Nope, they're terminators that separate. Gah! Yes, I know this matters very little outside of the exam context.
Here's my advice, since there seems no definite answer to whether an implied blank line after a final \n counts or not, if we get a question like this on the exam, let's guess an odd number of lines if we take the exam on an odd day of the month, and even if on an even day. Then we have a 50/50 chance of getting the point and we leave it in the hands of fate. May the mighty Lachesis look kindly upon us.